Variables Flashcards

1
Q

How do you insert a variable into a sentance?

A

{}
name_sentence= “Your name is {} isn\’t it?” .format(name)
Print(name_sentence)

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

How would you assign a variable name to a user input

A

variable_name= input(“user input questions?)

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