+ 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] ?

10th Jan 2017, 4:01 PM
Pascal Sebastiampillai
Pascal Sebastiampillai - avatar
4 odpowiedzi
+ 10
Letters are characters. If you didn't, they would be like variables. (ie x or y, with a value pertaining to them.)
10th Jan 2017, 4:54 PM
J.G.
J.G. - avatar
+ 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.
10th Jan 2017, 6:00 PM
ifl
ifl - avatar
0
im just doing this for the achievement
11th Jan 2017, 2:16 PM
Yefim Desir
Yefim Desir - avatar