subject

Size = 6 def get_numbers(num): numbers = [] user_input = input('enter %s integers: \n' % num) i = 0 for token in user_input. split(): number = int(token) # convert string input into integer numbers. append(number) # add to numbers list print(i, number) i += 1 return numbers def print_all_numbers(numbers): # print numbers print('numbers: ') def print_odd_numbers(numbers): # print all odd numbers print('odd numbers: ') def print_negative_numbers(numbers): # print all negative numbers print('negative numbers: ') nums = get_numbers(size) print_all_numbers(nums) print_odd_numbers(nums) print_negative_numbers(nums)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:00
Which database model is best used for data warehouse and data mining
Answers: 3
question
Computers and Technology, 23.06.2019 06:30
Martha is designing a single-player game. her manager suggests that she plan the design to incorporate future modifications. which principle of game design relates to planning for future modifications?
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
Visualizing a game of “tag” to remember the meaning of contagious
Answers: 3
question
Computers and Technology, 24.06.2019 04:30
Fall protection, confined space entry procedures, controlled noise levels, and protection from chemical hazards are some of the things that contribute to a safe and
Answers: 1
You know the right answer?
Size = 6 def get_numbers(num): numbers = [] user_input = input('enter %s integers: \n' % num) i = 0...
Questions
question
Mathematics, 21.06.2019 23:00