Question #234387

Describe at least three additional python experiments that you tried.show the python input and their output and explain what you learned from the results of each example


Expert's answer

1. For you to print a string must enclose the string in quotation marks otherwise it throws error,

print(hello) #error

Output: Syntax error

print("hello") #correct

Output: hello


2.You can do addition and print the result without storing in variable

print(60+5)

Output: 65


 3.When declaring variable no need of specifying the type of data to be stored in that variable.

 When you print the variable the output will be what is in it

n="hello"

print(n)

Output: hello


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!

LATEST TUTORIALS
APPROVED BY CLIENTS