subject

Python Exercise 5 grade 10 1. Develop a program that asks user to enter a list of integers, using zero as a signal of termination.
The program should calculate the number times that consecutive numbers are equal.
Ex: The following input
3
4
4
6
7
7
7
8
9
9
0
Should give you an answer of 4

2. Write a program that finds the largest in a series of numbers entered by the user. The program
must prompt the user to enter numbers one by one. When the user enters 0 or a negative
number, the program must display the largest nonnegative number entered:
Enter a number: 60
Enter a number: 38.3
Enter a number: 4.89
Enter a number: 100.62
Enter a number: 75.2295
Enter a number: 0
The largest number entered was 100.62
Notice that the numbers aren’t necessarily integers

Name: Python Exercise 5
3. Write a program that displays a number with its digit reversed. Generalize the program so that
the number can be one, two, or three digits. The program stops when users enters 0
Enter a number: 123
The reversed digit is: 321
Enter a number: 1
The reversed digit is: 1
Enter a number: 34
The reversed digit is: 43
Enter a number: 0

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:20
What is the full meaning of rfid in computer
Answers: 2
question
Computers and Technology, 24.06.2019 11:00
The program below has been generalized to read a user's input value for hourlywage. run the program. notice the user's input value of 10 is used. modify that input value, and run again. generalize the program to get user input values for workhoursperweek and workweeksperyear (change those variables' initializations to 0). run the program. monthsperyear will never change, so define that variable as final. use the standard for naming final variables. ex: final int max_length
Answers: 2
question
Computers and Technology, 24.06.2019 12:40
Match the feature to the network architecture. expensive to set up useful for a small organization easy to track files has a central server inexpensive to set up difficult to track files useful for a large organization does not have a central server client- server network peer-to-peer network
Answers: 3
question
Computers and Technology, 24.06.2019 19:00
Luis is cloud-based( microsoft bot framework). true false
Answers: 1
You know the right answer?
Python Exercise 5 grade 10 1. Develop a program that asks user to enter a list of integers, using z...
Questions
question
Mathematics, 13.11.2020 19:10
question
Mathematics, 13.11.2020 19:10
question
Computers and Technology, 13.11.2020 19:10
question
Advanced Placement (AP), 13.11.2020 19:10
question
Biology, 13.11.2020 19:10
question
Mathematics, 13.11.2020 19:10