Answer to Question #234387 in Python for Nana

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


1
Expert's answer
2021-09-07T23:21:25-0400

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS