Computers and Technology

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)

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:30, ilovepickles930
What can tanya do now to start preparing for the college and scholarship application process? think about her grades, activities in which she can get involved, possible part-time jobs at which she can work, and standardized tests she can take. (10 points) apex
Answers: 2
image
Computers and Technology, 22.06.2019 23:30, bri2008
Which of the following is not a symptom of chronic fatigue syndrome
Answers: 2
image
Computers and Technology, 24.06.2019 03:30, etxchrissy
What is the purpose of a computer network needs assessment? to analyze which workers need more training to improve their performance to compare worker productivity to determine what steps employees can take to increase company revenue to evaluate how to move from the current status to the desired goal
Answers: 2
image
Computers and Technology, 24.06.2019 10:30, brandon1748
You're programming an infinite loop. what must you include in your code to prevent crashes? in roblox
Answers: 2
Do you know the correct answer?
Size = 6 def get_numbers(num): numbers = [] user_input = input('enter %s integers: \n' % num) i = 0...

Questions in other subjects:

Konu
Mathematics, 08.10.2019 07:30
Konu
Mathematics, 08.10.2019 07:30