Computers and Technology
Computers and Technology, 14.09.2019 05:30, noah2o2o

Write a function nice_number, which has no argument, but asks the user to input on the keyboard a positive number. if the input of the user contains any symbol other than digits , the function should return a string "invalid input." otherwise, if the sum of the digits entered is a prime number the function should return the string "this is a nice number, you." in all other cases, the function should return "."

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 13:50, Estefaniamarilicolin
What does code do? a creates a text box that says "solid black" b creates a black border of any width c creates a black border 1 pixel wide
Answers: 1
image
Computers and Technology, 25.06.2019 00:00, bestdiva2
What function key is used to enable the spelling and grammar function
Answers: 1
image
Computers and Technology, 25.06.2019 03:00, achewitt3965
What judgment would you make about open systems interconnect? not useful that it is a technology that it is a model that it does not pertain to technology
Answers: 1
image
Computers and Technology, 25.06.2019 03:10, lokiliddel
Write a program to convert a person's height in inches into centimetres #and their weight in stones into kilograms. (1 inch = 2.54 cm and 1 stone = 6.364 kg)
Answers: 1
Do you know the correct answer?
Write a function nice_number, which has no argument, but asks the user to input on the keyboard a po...

Questions in other subjects:

Konu
Health, 10.03.2021 07:30
Konu
English, 10.03.2021 07:30