Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 9. Булев вход
- # Въведете стойност "True" или "False" (като текст).
- # Преобразувайте я до bool и отпечатайте:
- # "Истина", ако е True
- # "Лъжа", ако е False
- text = input("Please enter a value" + " True" + " or "+ "False" + " (as text): ")
- if text == "True":
- print("True!")
- elif text == "False":
- print("False!")
- else:
- print("Wrong text!")
Advertisement
Add Comment
Please, Sign In to add comment