How to include a numeric variable in a list | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

How to include a numeric variable in a list

so i want to include a variable "a" which would be treated as an integer inside a list. i also need to use "a" in operations later on thank you

11th Apr 2017, 1:18 PM
Emmanuel Nassour
Emmanuel Nassour - avatar
1 Réponse
+ 5
a = 2 list = [a, 0, 3, 4] Right?
11th Apr 2017, 1:50 PM
MrCoder
MrCoder - avatar