The Python language has many similarities to Perl, C, and Java. However, there are some definite differences between the languages.
Press Alt+ctrl+t to open the terminal and type
gedit welcome.py
in notepad enter the following code:
print "Hello World, Welcome to python";
save and close the file
to run a file in the terminal type python welcome.py
for python3 following is the code
print("Hello World, Welcome to python")
to run a file type python3 welcome.py
Press Alt+ctrl+t to open the terminal and type
gedit welcome.py
in notepad enter the following code:
print "Hello World, Welcome to python";
save and close the file
to run a file in the terminal type python welcome.py
for python3 following is the code
print("Hello World, Welcome to python")
to run a file type python3 welcome.py
No comments:
Post a Comment