subject

How do you add a value from a Python List to a variable? Example:

x=0

list=[4,5,6,7]

How would you add 6 and 4 specifically to x?

If there's no possible way in vanilla Python, can you tell me if there's a library that i can import and how to use it (im a noob at programming)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 18:00
Hacer un algoritmo que me permita ingresar el nombre de una parcela de terreno y muestre junto al mensaje “tipo de suelos: suelos fumíferos, ¡excelente!
Answers: 1
question
Computers and Technology, 25.06.2019 07:00
Afile named data.txt contains an unknown number of lines, each consisting of a single integer. write some code that creates two files, dataplus.txt and dataminus.txt, and copies all the lines of data1.txt that have positive integers to dataplus.txt, and all the lines of data1.txt that have negative integers to dataminus.txt. zeros are not copied anywhere.
Answers: 2
question
Computers and Technology, 25.06.2019 08:20
The internet backbone is a foundation network linked with
Answers: 1
question
Computers and Technology, 25.06.2019 10:30
Tools used in a particular career depend on the tasks performed. true or false
Answers: 1
You know the right answer?
How do you add a value from a Python List to a variable? Example:

x=0

list=[4...
Questions
question
Mathematics, 12.02.2020 00:37
Questions on the website: 13722367