15,181 Topics

Member Avatar for
Member Avatar for vegaseat

A dictionary in Python is an unordered set of key:value pairs. I show you how to initialize, create, load, display, search, copy and otherwise manipulate this interesting container. Like the name says, it is the closest thing to a dictionary.

Member Avatar for Babe1
3
1K
Member Avatar for vegaseat
Member Avatar for throwaway123

I need help with this program I am doing. I need to be able to select encrypt or decrypt(ive only done encrypt at the momment) and need to be able to select an offset here what ive got so far and I have a number of problems. http://imgur.com/a/N3Tul 1 is …

Member Avatar for vegaseat
0
338
Member Avatar for Shaji_1

I am trying to change the first character of each word in a list to upper case using Python 2.7. I am able to change the entire list to lower case, but I am not getting what I want - i.e the first character of each word to be upper …

Member Avatar for TrustyTony
0
306
Member Avatar for Niloofar24

Hi everybody. I've created a .py file with a simple function in it. Now i want to call that function from linux shell scripting. How should i do that? please help me, thank you.

Member Avatar for Niloofar24
0
1K
Member Avatar for kouty

Hi to the forum; A simple question: I want to make a prime number checker: So if I want to test if 25 is a prime number. i should to verify if 2 is a factor. if it is not, i verify with 3 and 4 (not my subject if …

Member Avatar for kouty
0
186
Member Avatar for faizlo

I have this script which can calculate the total of numbers given in a string total = 0 for c in '0123456789': total += int(c) print total How should I modify this script to find the total of if the numbers given in the string form have decimal places? That …

Member Avatar for Gribouillis
0
269
Member Avatar for sneekula

On my Raspberry Pi computer I did a search for PIL and matplotlib with apt-cache search python but could not find anything close in the list. Is PIL/Pillow and matplotlib available for Linux and what is it called? The Raspberry Pi has Python27 and Python32 installed.

Member Avatar for vegaseat
0
391
Member Avatar for Slavi

Hey guys, I am making a small script here and I got stuck on it a bit ... perhaps one of you could help me out The idea is to send an email that has attached zip file to it. My script is import smtplib import zipfile import time from …

Member Avatar for Slavi
0
8K
Member Avatar for clife

Hi, I need to change the nice value of a process, but not sure how to do it. My process has a priority of 0 when it is launched , i need to decrease it to some +ve value. I know we use os.system("renice -n value -p pidof process"). to …

Member Avatar for Gribouillis
0
227
Member Avatar for giancan

Dear all, I have a window with several textctrl. I am trying to intercept the mouse click in each control, open a filedialog and set the value of the specific control with the selected file. The problem is that I would like to avoid creating hundreds of similar functions for …

Member Avatar for Ene Uran
0
212
Member Avatar for Slavi

Hey guys, I am a bit confused here ... making a script to brute force through a dictanary the password of a zip file and it seems to work fine except that it won't stop when the password is found. And when it prints the password it just prints the …

Member Avatar for Ene Uran
0
261
Member Avatar for Slavi

Hey guys, I am making a script here to read from windows registry. The problem that I am facing is that at a certain point I start getting an error that the file does not exist. First Here is what I am doing `net = r"SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\Unmanaged"` `key = OpenKey(HKEY_LOCAL_MACHINE, …

Member Avatar for Ene Uran
0
178
Member Avatar for frankinaround

Yo whats up. I need help building a chat bot in python. I put together a 'special engine' (terms I found while searching the web- special and matrix engine(they translate user input)) basicly the special engine is a bunch of sentences that each have a few responses attached to them. …

Member Avatar for magnus.wootton
0
395
Member Avatar for Sruthi_2

Hi, I am trying to write a script that will traverse through my directory and sub directory and list number of files in a specific size. For example 0kb-1kb: 3, 1kb-4kb:4, 4-16KB: 4, 16kb-64-kb:11 and goes on in multiples of 4. I am able to get list of file numbers, …

Member Avatar for woooee
0
243
Member Avatar for Azmah

I always see Python for web development but not for desktop programs. I've heard you can but can't find resources on how. Thanks in advance O:)

Member Avatar for kristopher.roller
-1
1K
Member Avatar for steven.rose.94

''' in Python 3.4 Attempting to parse and print one line (actually a number)from the downloaded code from yahoo sourecode using regex to pull the number that is located at the (.*?). I've tried everything I can think of to get this to work - I expect the problem is …

Member Avatar for steven.rose.94
0
359
Member Avatar for vegaseat
Member Avatar for Dacorncob

so, i got this code, what it does is that it counts down from 20 minutes, is there a way to do so it counts from 0 to 20 min in that same gui? try: # Python2 import Tkinter as tk except ImportError: # Python3 import tkinter as tk import …

Member Avatar for Dacorncob
0
500
Member Avatar for EdJones

I'm looking for a script that generates random images using the PIL Image module by assigning random RGB values to each pixel on a blank canvas. Does anyone have one of those lying around? (I want to write my own just for practice, but if it's already been done by …

Member Avatar for vegaseat
0
6K
Member Avatar for vegaseat

If you draw a series of close spaced shapes your eyes get fooled to see Moire patterns. Here is one example of this.

2
2K
Member Avatar for itsnauman

Hey, guys can any one suggest me a cool intermidiate level python library idea to work on in these summers?

Member Avatar for vegaseat
0
144
Member Avatar for IneedHELP2020

i have to make an numberplant genarator in python 3.4.2 but i am having a lot of trouble plz help

Member Avatar for vegaseat
0
111
Member Avatar for Gribouillis

Sometimes you want the value of a variable to be related to its name in the source code. For example, the variable x should have the value "var x". This is especially useful when you perform symbolic computations with python (with the sympy module for example). In standard python, the …

Member Avatar for Gribouillis
0
444
Member Avatar for otengkwaku

To download streaming videos on window is very easy after all there are so many softwares to do that for you but on linux it is not soo easy. There is howevery this command line tool that helps you do this [youtube-dl](https://github.com/rg3/youtube-dl. But this command line tool lacks some features …

1
106
Member Avatar for techfreak

Hey all. I'm facing a bit of a challenge and and having a hard time trying to figgure out how do do this. Basically I have two computers (Raspbery Pi's) that I'm using. One (Pi A) is acting as a remote and sends a request to the receiver (Pi B). …

Member Avatar for woooee
0
234
Member Avatar for mark103

Hi guys, I need some basic help with my code, I've created a empty list to appending the controls to a list to add the controls when I pressed on the down arrow button of the keyboard. I'm trying to appending another controls to a list to add the controls …

Member Avatar for mark103
0
439
Member Avatar for vegaseat

Just in time for the season, a star. (Playing with my grandson on the Raspberry Pi computer)

Member Avatar for sneekula
1
5K
Member Avatar for Greyhelm

I am trying to get character matching when comparing two strings. The result would display the two words side by side with the matching (and non-matching) characters displayed. This would be similar to mastermind. Example: (test word) - HALE (sample word) - HELP This would be displayed as: H?L? HELP …

Member Avatar for Greyhelm
0
336
Member Avatar for Nancy 92

Hi. I am not exactly new to python but I have never done anything related to time and I don't know how. I want to make a count down timer that starts when I start a program and then either closes when I close the program or when it counts …

Member Avatar for HiHe
0
12K

The End.