+ 1

can you make multiple values in var

variables

9th Sep 2016, 9:54 PM
geramiah
8 Réponses
+ 2
Yes we can
11th Sep 2016, 5:33 AM
Aravind
Aravind - avatar
+ 2
It depends. If the var is a string... No. Example: var greeting = "Hello" If the var is an integer... No. var age = "21" If the var is an array... Yes! var greetings = ["Hello", "Hola", "Yo"]
11th Sep 2016, 4:27 PM
Jairu O.
Jairu O. - avatar
+ 2
Tuples , arrays and dictionaries are the solution.
12th Sep 2016, 4:11 PM
Abdelkader Ait Assou
Abdelkader Ait Assou - avatar
+ 1
Yes, use an array for that.
9th Sep 2016, 10:10 PM
Zen
Zen - avatar
+ 1
Using an array
5th Feb 2017, 10:19 AM
Haroon Mahmood
Haroon Mahmood - avatar
0
i dont know
11th Sep 2016, 4:14 PM
Kristof St Bernard
Kristof St Bernard - avatar
0
Yes variable can have multiple values but only constant doesn't change
11th Sep 2016, 7:35 PM
gdeotech
gdeotech - avatar
0
In the python course is the same question about hundret times...dont know why...? Maybe the people do the first competition and fask for the next step?
26th Sep 2016, 8:14 PM
Andreas Kilian
Andreas Kilian - avatar