Computer Science, asked by SHIVA5717, 3 months ago

Which is the following is correct way to declare string variable ?

Answers

Answered by amrit7445
2

Answer:

Answer. fruit = 'banana' is the correct way to declare string variable in Python.

Answered by SAIFSYED09
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