Answer to Question #179819 in Python for FORTUNE AIDOO

Question #179819

 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. 


1
Expert's answer
2021-04-09T10:47:17-0400

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)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

Marcia
25.11.21, 05:00

This been very helpful

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS