Need some help with these loop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Need some help with these loop

When I input for example '50', it is supposed to toss 50 coins but when I get the results I mayor get 22 heads and 22 tails. This happens with most values. Any idea? https://code.sololearn.com/c9Ylk4z81s3c/?ref=app

22nd Feb 2018, 9:43 PM
Víctor
Víctor - avatar
4 Answers
+ 8
Change line 11 to: print(str(T) + " Tails")
22nd Feb 2018, 9:49 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 3
😸, welcome to the blindness club
22nd Feb 2018, 9:56 PM
Morpheus
Morpheus - avatar
+ 2
line 11, T instead of H 👍
22nd Feb 2018, 9:48 PM
Morpheus
Morpheus - avatar
+ 2
@Morpheus My god I'm so blind! Thanks!💜
22nd Feb 2018, 9:50 PM
Víctor
Víctor - avatar