Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Python, 1-5 step by step please. Thanks! 1. Given an array of ints, returm the number of 1's in the array [1, 2, 9]

In Python, 1-5 step by step please. Thanks!

image text in transcribed

1. Given an array of ints, returm the number of 1's in the array [1, 2, 9] # Answer is 1 b. a. [9, 1, 1] # Answer is 2 [9, 1, 1, 3, 1] # Answer is 3 C. 2. Write a Python program to find those numbers which are divisible by 7 and multiple of 5 between 1500 and 2700 (both included) Write a Python program to construct the following pattern, using a nested for loop 3. 1 2 3 1 23 4 1 2 345 1234 56 1234567 12345678 12 3456789 123456789 10 Write a Python program to create the multiplication table (from 1 to 10) of a number Input a number: 6 6 x 16 6 x 2 12 6 x 3 18 6 x 4 24 6 x 5 30 6 x 6 36 6 x 7 42 6 x 8 48 6 x 9 54 6 x 10 60 Get a number from user and calculate the sum of its digits 4. 5. a. b. C. 123 # Answer is 6 (1 + 2 + 3) 25 # Answer is 7 (2 + 5) 5001 # Answer is 6 (5 + 0 + 0 + 1)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke

12th Edition International Edition

1292023422, 978-1292023427

More Books

Students also viewed these Databases questions