Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My first code
#1
My first code I've ever made in python doesn't work and I don't know why. Please can you help me solve the issue.
Code:


age = 10;
if age < 9:
    print("Hey! ")
    print("Welcome to play with us")
else
    print("You're too old for this gang!")
Error code: 


Error:
>>> %Run test.py   File "C:\Users\vikto\Desktop\test.py", line 5     else        ^ SyntaxError: invalid syntax >>>
Reply


Messages In This Thread
My first code - by Flappo - Mar-02-2017, 04:57 PM
RE: My first code - by micseydel - Mar-02-2017, 05:10 PM
RE: My first code - by Flappo - Mar-02-2017, 05:12 PM
RE: My first code - by micseydel - Mar-02-2017, 05:14 PM
RE: My first code - by Flappo - Mar-02-2017, 05:15 PM
RE: My first code - by wavic - Mar-02-2017, 05:42 PM
RE: My first code - by stamnik - Mar-02-2017, 06:20 PM

Forum Jump:

User Panel Messages

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