Please read the note carefully and try to solve the problem below:
Table of contents:
-
Try to replicate the line below and change
'hello world'
to[your name]
andprint
it in the terminal.print("hello world")
-
Try adding two numbers and print the value in the terminal. (example:
print(5+6)
) -
Try adding more than 2 numbers and see the results Example:
print(3+4+5)
-
Try printing hello world without quotation
''
or inverted comma and see if any error occurs Example:print(Hello World)
-
If error occurs in any of the above step, please note the line number and the message where the exception is thrown.
Click to see the solution
- Print
"Hello World"
using print() function - Comment the line from the above solution and try running the program again. Explain what happens and why it happens
- Create a multiline comment using Triple single
'''
and double quotes"""
and add your content.
Click to see the solution