subject

In python, create a program that meets the following requirements: take two integers from the user. save the lower number as x. save the largest integer as y. write a loop that counts from x to y by twos. print out the values of that loop using the print function in python. write another loop that adds x and y, and saves the value as z. print out the values of z using the print function in python.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:00
Consider this data sequence: "3 11 5 5 5 2 4 6 6 7 3 -8". any value that is the same as the immediately preceding value is considered a consecutive duplicate. in this example, there are three such consecutive duplicates: the 2nd and 3rd 5s and the second 6. note that the last 3 is not a consecutive duplicate because it was preceded by a 7. write some code that uses a loop to read such a sequence of non-negative integers , terminated by a negative number. when the code finishes executing, the number of consecutive duplicates encountered is printed. in this case, 3 would be printed. assume the availability of a variable, stdin, that references a scanner object associated with standard input. that is, stdin = new scanner(system.in); is given.
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
Per the municipal solid waste report, what are the most common sources of waste (trash
Answers: 3
question
Computers and Technology, 23.06.2019 23:30
The keyboard usually has six rows of keys. which of the following is not one of the key group categories? letter keys number keys control keys graphic keys
Answers: 1
question
Computers and Technology, 24.06.2019 11:30
Why is body language an important factor in a business meeting
Answers: 1
You know the right answer?
In python, create a program that meets the following requirements: take two integers from the user....
Questions
question
Mathematics, 05.02.2021 07:50
question
Mathematics, 05.02.2021 07:50
question
Mathematics, 05.02.2021 07:50
question
Mathematics, 05.02.2021 07:50
question
Mathematics, 05.02.2021 07:50
question
Biology, 05.02.2021 07:50
question
Mathematics, 05.02.2021 07:50
question
Mathematics, 05.02.2021 07:50