+ 1
ok i have a question: why do i have to put apostrophes when i list letters: ['a','b','c'] but when i list numbers not: [1,2,3] ?
4 ответов
+ 10
Letters are characters. If you didn't, they would be like variables. (ie x or y, with a value pertaining to them.)
+ 2
This indicates to the python engine that the item is either a character or a number. You can use the characters '1' '2' '3' to create words and phrases, and numbers 1 2 3 to do maths.
0
im just doing this for the achievement