Describe at least three additional Python experiments. Show the Python inputs and their outputs, and explain what you learned from the results of each example.
First experiment
Printing string without quotation
Generally if you miss quotation mark it will give syntax error
Now lets print the value without any quotation mark
print(456)
Output will be
456
Second Experiment
Using + and - symbol
print(4++4)
output will be 8
print(4+-4)
the result will be 0
print(4-+4)
the result will be 0
Third Experiment
Using leading 0s
if you try to print with leading 0s
it will give syntax error:
print(05)
print(5+05)
Comments
This been very helpful
Leave a comment