Q: it's to make a rough calculation of download time just like to know what i did wrong i get a syntax error at the "1000 / kb" kb = input("How many Kbps: ") mb = input("How big is the file(in mb): " 1000 / kb = sec sec * mb = long 60 / long = tot print "It will take about ", tot, "minutes for the download to finsh"
A: 1.Use raw_input() instead of input() 2.if u wana store the value of the variable x in the variable y then the correct syntax is (assuming x was declared with a value : y = x #( put the contents of x into the variable y ) u can now figure out the mistakes in the code
Related items
- Help!I want to extend the experation date for this question, but I do not know where the action bar is:?
- Why can't I see grid dots in Visual Studio 2008?
- What's wrong with the below C program??
- I want to use javascript to change the background colour within an IF statement?
- Python: learn or rewrite in Java?