Question: Python help. No using input ( ) nor print ( ) , no string formatting Learning Objectives: Using selection statements ( if / elif /

Python help. No using input() nor print(), no string formatting Learning Objectives:
Using selection statements (if/elif/else)
Defining functions
Using function calls
Using function return statements
Applying arithmetic operators
Assumptions
The data types of the values that are sent to the functions are the proper ones and you don't have to
validate them. Be sure to read additional assumptions made in individual problems!
Restrictions
You may:
Use arithmetic operators: +,-,*,/,//,%
Use Boolean operators and, or,,, etc.
Data types:int, float, str, bool
Casting functions: int(), float(), str(), bool()
You may not:
Import anything.
Use string formatting or string indexing (i.e. string[index]).
Use loops or any other features not covered in class yet. (If you are unsure, ask!)
Use input () or print (). For this assignment you will be defining functions and handling
input/output differently. See the Testing and Functions sections below for more details.
Functions
This assignment is different from the previous one! You won't write a monolithic program as you did in PA
1, but you're going to implement the following functions. The signature of each function is provided. Do not
make any changes to the signatures; otherwise, the tester will not work properly. You will not write a main
body for your program. Only implement (write the code for) the functions described below. The testers will
call and test the functions you implement. Remember, the structure of a function is:
def function_name(param1, param2, etc.): #this is the signaturemore commandsreturn HH:MMpmam10:25pm
Python help. No using input ( ) nor print ( ) ,

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 Programming Questions!