15,181 Topics

Member Avatar for
Member Avatar for john123doe

initialize passes to zero initialize failures to zero initialize student to one while student counter is less than or equal to ten input the next exam result if the student passed add one to passes else add one to failures add one to student counter print the number of passes …

Member Avatar for EnergeticJet
0
530
Member Avatar for aanchal_1

Is there any way i can use pygame and Tkinter in python together? I was planning to make a game using both of these modules.i'm trying to make the window and option buttons using Tkinter. the options would let the user choose which game s/he wants to play. then after …

Member Avatar for ZZucker
0
237
Member Avatar for Joe_6

I have a csv script that runs within a sequence on a set of gathered urls like so: threaded(urls, write_csv, num_threads=5). The script writes to the csv but seems to rewrite the first row for each url rather than writing to new rows for each subsequent url. I'm new to …

Member Avatar for Joe_6
0
181
Member Avatar for Gribouillis

A simple way to resize an image programmatically, using the PythonMagick module. This module is a python port of the [the magick++ library](http://www.imagemagick.org/Magick++/).

Member Avatar for Gribouillis
4
3K
Member Avatar for Gaven

Hi I would like to use randint from random to get random numbers, and after doing this I would like to add it to Dict or List and check if the number already added and which Postions this an have so it shoudl print out which possition this number have, …

Member Avatar for ZZucker
0
372
Member Avatar for cahram

Hi, I'm new to Python and have a task of reading a user input text file that is tab-delimited and contains 4 columns in each line: Authors, Year, Title and Journal. I currently am just able to open a file, and now I don't know how to begin parsing the …

Member Avatar for nihad.aziz
0
4K
Member Avatar for ben.juarez.773

Hello, Simple question: how can I command pgs4a to use android-10 (2.2.3) instead of always using android-8 (2.2)? I've tried using the target commands, but to no avail, unless I have missing files? I have my game set up and built, i've successfully created 2.2 apk's but cannot figure out …

0
166
Member Avatar for drayford

#QUESTION ONE person = input('Please enter your name:') print('Hello', person,'. How are you today?') #QUESTION TWO emotion = input('Please enter happy, sad or neither:') if emotion == 'happy': print('Well, it is great to hear that you are so chipper',person,'! Shall we continue?') else: print('Sorry to hear that. Hopefully we can …

Member Avatar for ZZucker
0
323
Member Avatar for jvidinha

Hi all, Would like to hear your approaches on how to parse a large txt file with one single line and writing to another file every block of 180 charaters in a new line.

Member Avatar for snippsat
0
355
Member Avatar for nyfan68

In my program that I have posted below, the user is suppose to click on a circle that is drawn using a specific color. Depending on whether or not the circle is colored yellow or blue, text will display in the same window as "Correct" or "Incorrect". The problem I …

Member Avatar for ZZucker
0
296
Member Avatar for abaddon2031

I have a python code that reads a file into a stringio. This works great but now i need to do is http post from the stringio and i can not figure it out. Any help would be greatly appriciated cause this is really conffusing and i dont know what …

0
257
Member Avatar for MasterHacker110

I'm trying to write a search enigne. Nothing fancy like google or so, just a simple one for educational purposes. I have done a little research and I know that Google uses Python, Java and C++. I on the other hand know C++, PHP, some Java and C# and even …

Member Avatar for kindo
0
243
Member Avatar for alyons

Do anyone know how to set a gif image as the background to my coding below? I just want it for my first window and not Demo1? The gif image is nameed "python_wallpaper.gif". from tkinter import * import threading from graphics import * class Intro(): def __init__(self,master): self.master = master …

Member Avatar for ZZucker
0
9K
Member Avatar for seotheo

Hi, Looking for a bit of advice if possible. I have a Django website I'm trying to deploy onto a new server but the documentation I have been able to find hasnt done me much good. I have all the files loaded onto the server in the same structure as …

Member Avatar for TrustyTony
0
227
Member Avatar for tjames95

I am new to Python and I am trying to import pygame. I am using Python 3.1 and I installed pygame 1.9.1 for python 3.1. When I try to import the module I get the following message: [icode]Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import pygame …

Member Avatar for Schol-R-LEA
0
2K
Member Avatar for abaddon2031

I have a block of code that i reads a file and then converts it to a add and update file and im looking to change it to where insead of it having a hard copy created every time for it to use stringio if it is possible. Sence im …

0
136
Member Avatar for abaddon2031

I have a code that i have made that appends a file then uploades the output of the appending to my websites database. In the code i have 2 def statements that i would like to put into modules. I was wondering if omeone could tell me a simple way …

Member Avatar for TrustyTony
0
205
Member Avatar for dcampbell

Hi, I was wondering if someone could help me wrap my head round iterations in a while loop. What I am trying to do is do a word replace and then add a numbering to each replace. IE Therapist bl;kja;lafkja;ldkjad;l Patient ;alkjf;dljkad;ljkfl;kaj; Therapist bl;kja;lafkja;ldkjad;l Patient ;alkjf;dljkad;ljkfl;kaj; To T1 bl;kja;lafkja;ldkjad;l P1 …

Member Avatar for dcampbell
0
243
Member Avatar for Con7e

Hello, I want, with a python script, to be able to login a website and retrieve some data. This behind my company's proxy. I already tried using the proposed solutions found on the web but they didn't work... I don't only need a piece of code to login and get …

0
141
Member Avatar for geetylerr

Can someone review this and give it some tips? Ive awlways struggled with python programming. # address book # Tyler G def search_database (): #search algoritm searchcriteria = raw_input("What do you want to search? ") temp1 = open("addressbookdata","r") for line in temp1: if searchcriteria in line: print ("\n") print ("\n") …

Member Avatar for TrustyTony
0
2K
Member Avatar for chokorato

I want to convert xml to python. Help!!! <?xml version="1.0" encoding="UTF-8" ?> <objName>Stage</objName> <variables> <name>matrix dimension</name> <value>2</value> <isPersistent>false</isPersistent> </variables> <variables> <name>tile total</name> <value>4</value> <isPersistent>false</isPersistent> </variables> <variables> <name>current tile number</name> <value>4</value> <isPersistent>false</isPersistent> </variables> <variables> <name>tile size percentage</name> <value>100</value> <isPersistent>false</isPersistent> </variables> <variables> <name>tile width</name> <value>105</value> <isPersistent>false</isPersistent> </variables> <variables> <name>initial board width</name> <value>210</value> …

Member Avatar for profmuluka
0
283
Member Avatar for Manisha_2

Can anybody please help me create a address book which can add delete edit etc..

Member Avatar for Manisha_2
0
170
Member Avatar for DawnofanewEra

Hello guys..!! I'm new to python and I have a task which require me to write a simple TCP server which will interact with the web browser. I have done some coding as well as researching over the internet to find relevant notes and materials but none helped. What I …

Member Avatar for slate
0
491
Member Avatar for varshaholla

how to subtract the background in an image. i need only the object and the background should not be present. is it possible to get only the object? Any suggestions are welcome!

Member Avatar for varshaholla
0
117
Member Avatar for georgieporgie

no idea why my program is not reading the text file correctly am I doing something wrong, here is what i have so far import string count = 0 infile = open("text.txt", "r") uppercasecount, lowercasecount, digitcount = (0, 0, 0) def main(): for character in infile.readlines(): if character.isupper() == True: …

Member Avatar for woooee
0
166
Member Avatar for rwe0

Hi, Is there a Python 3.x library that does mostly what a File Manager (Nautilus, Windows Explorer, PCmanFM, etc) does? I would like the typical features, mime programs launch in the native os, navigation and some GUI file pickers provide some of this. I don't think I can just invoke …

Member Avatar for rwe0
0
213
Member Avatar for Diego_4

# I have been assigned to create a POSTFIX calculator module and program with lists # # I have no idea of how to start my module # #The example we have is in http://en.wikipedia.org/wiki/Reverse_Polish_notation

Member Avatar for Gribouillis
0
80
Member Avatar for javaxoty

Hello, I have written a python module, created dist and installed on my computer. But now I want to update the module? Do I need to edit the file that is placed in site-packages folder directly or should go "Delete previous Dist, Recreate Dist and Reinstall Module" way? Cheers

Member Avatar for Gribouillis
0
239
Member Avatar for rexasabor

How do you add x amount of different inputs? For example, if you were to code number = input("How many numbers do you have?") for x in range(number): value = input("Insert a value:") The user would decide how many values (number) they have and what the are. I would like …

Member Avatar for ddanbe
0
125
Member Avatar for ItsAdZy

I am looking to start learning the python language and I was wondering if anyone can give me a heads up to any good IDE's for the language? I have a list [here:](http://wiki.python.org/moin/PythonEditors) but because there are so many I have no idea where to even start. Thanks in advance.

Member Avatar for RogueHaxor
0
1K

The End.