Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Python, 1-5 step by step please. Thanks! 1. Create a program that asks the user to enter their name and their age. Print out

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

image text in transcribed

1. Create a program that asks the user to enter their name and their age. Print out a message addressed to them that tells them the year that they will turn 100 years old Take two integer values from the user and return their sum. Unless the two values are the same, then return double their sum Ask the user for a number. Depending on whether the number is even or odd, print out an appropriate message to the user. Hint: how does an even /odd number react differently when divided by 2? You may also want to Google about the modulus operator and how to use it in Python Take 2 integers, a and b. Return True if one of them is 10 or if their sum is 10 Take an integer n, return True if it is within 10 of 100 or 200. Note: abs(num) computes the absolute value of a number 2. 3. 4. 5

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_2

Step: 3

blur-text-image_3

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

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

More Books

Students also viewed these Databases questions