0

write the output of this code (if your are genius)?

i=1 while i<=5: s=float("enter a single digit:") if s>=10: break: else: sum[]=s+1 i=i+1 print(sum) output:- s=2 s=5. if this code make error:what's that. s=8 s=11. if this code show result:what's output. s=2

7th Aug 2016, 5:55 AM
balakarthic
2 Answers
0
this program not compile
12th Aug 2016, 2:01 PM
srilekha
0
s=2 Output:- 3 enter a single digit: s=5 Output:- 6 enter a single digit: s=8 Output:- 9 enter a single digit: s=11 Output:- s=2 Output:- 3 enter a single digit: # I'm not genius
20th Aug 2016, 6:33 PM
Wilfried Willend
Wilfried Willend - avatar