micseydel wrote:What attempt have you made?
lister = 
var = input('Input number or "done" to exit loop')
if var == 'Done':
intvar = int(var)
total = sum(lister)
vadimak wrote:How can i make a Coaunter in loop for example program will ask me for number again and agin antil i input "Done" and then its printing me ount the sum of numbers.
i am sorry for this stupid Qusion but i am only started to learn python
vadimak wrote:input output
- Code: Select all
inum=input("please in put a number")
vadimak wrote:Thank you ';DDDDDDD
Users browsing this forum: Bing [Bot], Yahoo [Bot] and 3 guests