Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If Statement Help
#5
(Jul-30-2019, 01:12 PM)VictorVictus Wrote:
(Jul-30-2019, 01:03 PM)cvsae Wrote: i dont know if understand correcly but i wil try to help cann you provided the expected results ??

try this



is_male = True
is_female = False

if is_male and not(is_female):
    name =(input("Please State My Name! It must be a Male name:"))
    if is_male and name == "Connor":
        print("My Name Is Connor, I'm The Android Sent by Cyberlife!")
    elif  is_male and name != "Connor":
        print("My name is " + name + "")

Hello, thank you for your help, you have resolved my problem! Many thanks!

ok, please read https://python-forum.io/Thread-If-Statem...6#pid87556
Reply


Messages In This Thread
If Statement Help - by VictorVictus - Jul-30-2019, 12:56 PM
RE: If Statement Help - by cvsae - Jul-30-2019, 01:03 PM
RE: If Statement Help - by VictorVictus - Jul-30-2019, 01:12 PM
RE: If Statement Help - by cvsae - Jul-30-2019, 01:13 PM
RE: If Statement Help - by metulburr - Jul-30-2019, 01:11 PM
RE: If Statement Help - by VictorVictus - Jul-30-2019, 01:19 PM
RE: If Statement Help - by metulburr - Jul-30-2019, 01:21 PM

Forum Jump:

User Panel Messages

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