subject

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 "."

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:30
This technology is used to produce high-quality documents that look good on the computer screen and in print.
Answers: 1
question
Computers and Technology, 22.06.2019 12:30
Which of the choices sean are not true when considering virus behavior
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
The next button in the review section shows the next available comment. next slide with no comment. previous comment. edited comment.
Answers: 1
question
Computers and Technology, 23.06.2019 04:10
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
You know the right answer?
Write a function nice_number, which has no argument, but asks the user to input on the keyboard a po...
Questions
question
Mathematics, 02.03.2021 17:30
question
Social Studies, 02.03.2021 17:30
question
Mathematics, 02.03.2021 17:30
question
Mathematics, 02.03.2021 17:30
Questions on the website: 13722360