Sublime Forum

Help in Python

#1

Hello there!
I’ve just started using Python and Sublime Text, I wrote this simple program:
forename = input("What is your forename? "); print("Hello" + forename + "/n"); print("/n");
but the problem is when I run the program it says:
statement ends with a semicolon, no new line at the end of the file, I’ve tried removing the semicolons
help!
Cheers

0 Likes

#2

3 points:

  • Your code is a console program to use inside a python console - not to use in ST. In ST you have the sublime api.
  • You don’t need semicolon at line end.
  • To write a line feed use “\n” instead of “/n”.
0 Likes