Python Forum
Don't Understand what I am doing wrong : Can someone help?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Don't Understand what I am doing wrong : Can someone help?
#1
user=input("Hello, I am the computer. What is your name? : ")
print("Hello,", user)
user=input("Chris, do you enjoy programing? : ")
print("I enjoy it as well. I happen to run on programs.") if "yes" else ("Why not : ?")
user=input("What do you like to program? : " if "yes" else input("Why don't you enjoy programing? : "))
On the fourth line, I am trying to get the computer to respond "Why not : ?" after I enter no, on the line above that. Every time I try to fix it and find out why it is not working, the computer keeps responding "I enjoy it as well. I happen to run on programs." Can someone please help me to understand what I am either missing or doing wrong. I am new to using Python and it is hard for me to find mistakes that I have made.
Thank you. Big Grin Think
Reply


Messages In This Thread
Don't Understand what I am doing wrong : Can someone help? - by meekschr - Dec-23-2018, 11:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Am I wrong or is Udemy wrong? String Slicing! Mavoz 3 2,607 Nov-05-2022, 11:33 AM
Last Post: Mavoz
  python gives wrong string length and wrong character thienson30 2 3,038 Oct-15-2019, 08:54 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020