subject

Can someone please explain what '+=' is in python and how it is incorporated into the following piece of code: def ExtractOdds(zeta):
result = ""
for x in range(0,len(zeta),1):
if x % 2 == 1:
result += zeta[x]
return result

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:40
In this lab, you complete a python program that calculates an employee's annual bonus. input is an employee's first name, last name, salary, and numeric performance rating. if the rating is 1, 2, or 3, the bonus rate used is .25, .15, or .1 respectively. if the rating is 4 or higher, the rate is 0. the employee bonus is calculated by multiplying the bonus rate by the annual salary.
Answers: 1
question
Computers and Technology, 23.06.2019 00:00
What season was better from fortnite?
Answers: 2
question
Computers and Technology, 23.06.2019 00:20
Ihave been given the number of guns per 100, and the total firearm-related deaths per 100,000. i have to find the actual number of guns per country and actual number of gun-related deaths. if somebody could show me how to do 1 question, i can finish the rest, i am just confused. tia
Answers: 3
question
Computers and Technology, 23.06.2019 00:30
Which of the following would you find on a network
Answers: 3
You know the right answer?
Can someone please explain what '+=' is in python and how it is incorporated into the following piec...
Questions
question
Physics, 25.03.2021 17:50
question
Mathematics, 25.03.2021 17:50
Questions on the website: 13722367