Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
coding doesent work???
#1
hey all i am using python 3.3.3 in idle (i know its outdated) but i am trying to make a siple if statment however it wont work and says invalid syntax if i try to run it and highllights the word else. what have i done wrong?? here it is

print ("hello world")
myName = input("what is your name?")

if(myName == "Louis" or "louis"):
    print("Louis is so amazing")

    else print("you are ok")
thanks,Darbandiman123 Think LOL
Reply


Messages In This Thread
coding doesent work??? - by Darbandiman123 - Dec-22-2016, 06:45 PM
RE: coding doesent work??? - by micseydel - Dec-22-2016, 07:10 PM
RE: coding doesent work??? - by wavic - Dec-22-2016, 07:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  my coding doesn't work plz help Darbandiman123 6 5,107 Feb-03-2017, 05:27 PM
Last Post: Ofnuts

Forum Jump:

User Panel Messages

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