Programming exercise - facilitators favourite number

Assignment Help Python Programming
Reference no: EM133059350

Learning Activity: Programming exercise

Your learning facilitator's favourite number are three-digit numbers that have the following property:

The sum of each digit of the number cubed equates the number itself. For example, number 153 is a three-digit number your learning facilitator is after because:

13+53+33=153

However, 221 is not such a number because:

23+23+13 ≠ 221

Now you are tasked to write a Python program that allows the user to type in a three-digit number. If the number is your learning facilitator's favourite number, then output "Yes", otherwise output "No".

Sample input/output 1:
>>> Enter a three-digit number:
>>> 153
>>> Yes

Sample input/output 2:
>>> Enter a three-digit number:
>>> 221
>>> No

Reference no: EM133059350

Questions Cloud

Programming Exercise - Fibonacci series : Programming Exercise - Fibonacci series - write a Python program that allows the user to type in an integer n. Your program will then output the first n terms
Write a python program that outputs all the even numbers : Write a Python program that outputs all the even numbers from 2 to a number (inclusive) provided by the user, separated by comma
Draw a flowchart and write up some pseudocode : Draw a flowchart and write up some pseudocode for searching for a particular element in an arbitrary list.
Write a simple income tax calculator in Python : Write a simple income tax calculator in Python. Australia adopts a progressive income tax regime
Programming exercise - facilitators favourite number : Write a Python program that allows the user to type in a three-digit number. If the number is your learning facilitators favourite number, then output Yes
Programming exercise - odd or even number : Programming exercise - Write a Python program that determines whether a user's input number is an odd or even number.
Draw flowchart diagram for searching for particular element : Draw a flowchart diagram for searching for a particular element in a list and write out the pseudocode for that algorithm
Find the output of python program : Find the output of Python program - Without executing the following lines of code on your computer, answer the output of the lines that marked OUTPUT
Program output of the given lines of code : Program outputs - Without executing the following lines of code on your computer, answer the output of the lines that marked OUTPUT

Reviews

Write a Review

Python Programming Questions & Answers

  Creating a web application for an on-line videogame shop

CE219 Assignment - Creating a 3-tier web application for an on-line videogame shop. The application must be implemented in Python

  Argument for your python program

Argument for your Python program - Your program needs to report the line number if there is something wrong with the format of the time data

  Give examples that show different features of string slices

Give at least three examples that show different features of string slices. Describe the feature illustrated by each example. Invent your own examples.

  Define the max_x function

Define the max_x function, which takes two arguments: a function -call it f- of one parameter and any iterable that produces values.

  Write some statements that use a while loop to count the num

Given a variablet that is associated with a tuple whose elements are numbers, write some statements that use a while loop to count the number.

  Calculate the number of upper case letters and lower case

Write a program that accepts a sentence and calculate the number of upper case letters and lower case letters.

  Cleint software so that it does not display

Rewrite the cleint software so that it does not display an echo of a message sent by the users. Maybe it means that each time a user tries to send a private message that same message is also sent back to them? summary: stop that from happening?

  Implement K-means clustering algorithms

In this assignment, needs to implement K-means clustering algorithms using RapidMiner on insurance dataset. Please follow the RapidMiner documents from L12

  Describe how catching exceptions can help with file errors

Describe how catching exceptions can help with file errors. Write three Python examples that actually generate file errors on your computer.

  Write a python program that allows a player to play a game

COMP 1039-Problem Solving and Programming-The University of South Australia-Write a Python program that allows a player to play a game of Dice Poker against.

  Create your own harmonograph

Explain the importance of programming style concepts - Write and implement a solution algorithm using basic programming constructs. S3. Demonstrate debugging

  Design and implement a program that prints the number of odd

Design and implement a program that prints the number of odd, even, and 0 digits in an integer value that it reads from the keyboard.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd