Question: Define a print function, called printf , which It behaves like the Python built-in function print() . def printf () Input: variable length of parameters
- def printf ()
- Input:variable length of parameters
- Output: No return. It just prints like print()
- You are allowed to callprint()inprintf()
- Discard end option (e.g. print(a, end= ))
print("2", 19, "3.14") printf("2", 19, "3.14")
print('{0} and {1}'.format('John', 'Doe')) printf('{0} and {1}'.format('John', 'Doe'))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
