0

Why is print statement printing "none"?

https://code.sololearn.com/ckBLzzWpLXfo/?ref=app text = input(print("Enter text: ")) letter = input(print("Enter letter: ")) length = len(text) num_ltrs = text.count(letter) print(int(num_ltrs / length * 100))

22nd Oct 2021, 1:58 AM
Chad Sneath
Chad Sneath - avatar
2 odpowiedzi
+ 1
Chad Sneath why are u using print statement inside input text = input("Enter text: ") print(text) letter = input("Enter letter: ") print(letter) length = len(text) num_ltrs = text.count(letter) print(int(num_ltrs / length * 100))
22nd Oct 2021, 2:14 AM
Pariket Thakur
Pariket Thakur - avatar
+ 1
Beauty I don't know. That explains it.. Thank you
22nd Oct 2021, 2:19 AM
Chad Sneath
Chad Sneath - avatar