Print Statements Flashcards

1
Q

How to Print String .

A

print(“Hello World”)

print(‘Hello World’)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly