Print Statements Flashcards
1
Q
How to Print String .
A
print(“Hello World”)
print(‘Hello World’)
2
Q
How to Print string Variables.
A
name = ‘ “Hello” Hemant’
string = “ ‘Tajmahal’ is in Agra”
print(“Name > “,name)
print(string)
print(name + string)
print(“Print Two String Variables > “ + name + string)
print(“Print Two String Variables > “, name, string)