Select 'Python 3'
Type print("Hello World")
Type 1 + 1
===========
Update: January 7, 2016
How to show "Hello, World" from a Python file
Edit file "hello.py" with this command:
sudo nano hello.py
Edit and save the file as:
print "Hello without parentheses/round brackets"
x=1+1
print "1+1=%d" % x
Quit nano and run this command:
python hello.py
Result:
Hello, World from file
Hello without parentheses/round brackets
1+1=2
No comments:
Post a Comment