This shows you the differences between two versions of the page.
bok:sw:py:str [2020/12/29 13:09] anwlur created |
bok:sw:py:str [2020/12/29 13:10] (current) anwlur corrected i => str(i) |
||
---|---|---|---|
Line 6: | Line 6: | ||
int i = 0 | int i = 0 | ||
for i in range(100): | for i in range(100): | ||
- | print ("Downloaded " + i + "%", end='\r') | + | print ("Downloaded " + str(i) + "%", end='\r') |
time.sleep(50/1000) # sleep() function takes number of seconds | time.sleep(50/1000) # sleep() function takes number of seconds | ||
| |