Which is the following is correct way to declare string variable ?
Answers
Answered by
2
Answer:
Answer. fruit = 'banana' is the correct way to declare string variable in Python.
Answered by
0
Answer:-
By putting the sequence of characters inside either single quotes, double quotes, or triple quotes and then assign it to a variable.
Explanation:-
Eg:-
fruit = 'apple'
fruit = "apple"
etc...
Hope it helps you mate...
Similar questions