How do you declare a string variable in Python? Flashcards
(2 cards)
1
Q
A
2
Q
How do you declare a string variable in Python?
A
To declare a string variable in Python, enclose the text in single or double quotes, e.g., name = “Alice” or name = ‘Alice’.