0

What is a char and a string?

13th Dec 2018, 3:26 PM
Muhammad Zubair Mashwani
Muhammad Zubair Mashwani - avatar
3 Respuestas
+ 4
Muhammad Zubair Mashwani, you are studying Python. In Python there is not such a difference, there is only type str, and you can use ' or " as you please.
13th Dec 2018, 3:46 PM
HonFu
HonFu - avatar
0
A char is a type of variable which represents a character and a String is a sequence of chars meaning it is a word/phrase. E.g.: 'A' is a char and "Hello" is a String because is a sequence of 5 chars.
13th Dec 2018, 3:30 PM
Chriptus13
Chriptus13 - avatar
0
Chriptus could you please give me some meaningful information about single qutation and double qutation strings?
13th Dec 2018, 3:33 PM
Muhammad Zubair Mashwani
Muhammad Zubair Mashwani - avatar