- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
13 Posted Topics
Re: [code] mainlist = [] for i in range(10): a = 'name_' b = str(i) c = a+b c = [i] mainlist.append((a+b)+'_st00f') print(mainlist) [/code] That? | |
Re: Seconded about not feeling like a Hick. In Hendersonville, TN here. | |
Re: Just a try: [CODE]def dec(): x = float(input('enter number: ')) while x % 1 == 0: print ("the number entered must be a decimal number") x = float(input("Enter a decimal number:")) dec() [/CODE] | |
Re: Try something simple: [code] import math print (math.sqrt(4)) [/code] If that works then is it possible you do not have the module cTurtle on your home computer? Not all modules come with python and thus must be downloaded separately. If that doesn't work then check to make sure whatever editor … | |
Re: Could you throw in an if statement or while loop that reassigns dx/dy if they are 0? | |
Re: This is how I did it, if it helps at all. [code] class car: def __init__(self, model, make, speed): self.model = model self.make = make self.speed = speed def speedup(self, x): self.speed = self.speed + (5*x) def brake(self, x): self.speed = self.speed - (5*x) def carinfo(self): print ("Info..") print ("model: … | |
Hello all! I was bored and upon my father's challenge I made a program that tells you the 20 day SMA for a specific date, I only have 100 days of data but can up that to over 8000 whenever I get my logic sorted out. The problem is I … | |
Re: Hello, can you point me to zelle graphics module so I can try and trouble shoot this? edit: found the module. | |
Re: charlottetemp, can you post the code? Not sure if it needs to be a in a new thread to avoid hijacking this one... edit: the almighty vegaseat beat me by seconds! | |
Re: Don't want to hijack this but I'm interested in compiling a tkinter gui app with py2exe -- the catch -- I'm using python 3.1.1 or whatever the latest version is. I only see py2exe up until 2.6/7? I used cxfreeze, and it gave me a .exe file... however when I … | |
Hi all, I can convert my .py or .pyw files into EXE no problem. The thing is they only display a console for about a tenth of a second if they have a GUI made with tkinter. If it is a console only program then the exe works fine. Any … | |
Hello! I've been messing with tkinter and now have tried to make a MPG calculator using sliders. My problem is that no matter how I move the sliders it does not update the mpg, I'm not sure what to tell the label to do for it to update. I know … | |
Hello, I'm very new to python but made this as a sort of exercise. It is a loan calculator that takes into account user input. [code=Python] r = input('What is your interest rate? ') t = input('How many payments will you make? ') la = input('What was the amount of … |
The End.