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))
2 Réponses
+ 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))
+ 1
Beauty I don't know. That explains it.. Thank you