when I try to multiply with a decimal number in python with the input
this is what i get
MathCheats Times-Ed by jtl999
Not for decimal numbers due to a bug in the code.
Enter first number: 1.2
Traceback (most recent call last):
File "Timesed.py", line 18, in
numberx1 = (int)
File "GettingStarted.py", line 91
print ("Lesson Two")
^
SyntaxError: invalid syntax
Python 2.6.5
signature.asc
Description: This is a digitally signed message part
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscript
I want to pass a variable to os.system which is dir
>>> dir=raw_input ("Dir Please ")
Dir Please /
ok dir = /
>>> os.system ("ls" + dir)
sh: ls/: No such file or directory
32512
any advice
signature.asc
Description: This is a digitally signed message part
_