Question: Using python please give the code for the following questions. Write a program that asks the user to input a 7-digit number, do a for

Using python please give the code for the following questions.

Write a program that asks the user to input a 7-digit number, do a for loop to iterate through each digit and print the sum of those digits.

Write a program to print all the positive even number that are less than 11.

Write a program that reverses a string that is entered by the user, by using a for loop.

Use string operator '*' to output the string 'Informatics' three times. Please do not use loops.

Write a program to output all numbers (from 0 to 50) that are divisible by 3.

Write a program that asks the user to input 10 integers, and then prints the last odd number that was entered. If no odd number is entered, it should print a message to that effect.

Write a program to ask the user to input a negative number and output the absolute value of it using a function i.e. not multiplying it with -1.

Write a program to output a number that's divisible by 3 and is as close to 100 as possible. Use exhaustive enumeration.

Write a program that asks the user to input an integer X. and print two integer A, B such that X%A=B, using exhaustive enumeration

Write a program to calculate the square root of 64 using the Newton-Raphson method. Print the difference between the calculated value and the exact value answer.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!