Question: def greet ( iqra ) : This function personalizes a greeting message with the provided name. Args: name: The name to be
def greetiqra:
This function personalizes a greeting message with the provided name.
Args:
name: The name to be used in the greeting message.
Returns:
A string containing the personalized greeting message.
return fHello World, from iqra
# Assignment with function call
while True:
print Print Hello World"
print Calculate Square"
print Check Triangle or Square"
print Exit"
choice inputEnter your choice :
if choice :
name inputPlease enter your name:
printgreetname # Function call to personalize greeting
printI am very excited to learn coding!"
# other functionality from Assignments & same as before
if choice :
printExiting program. Goodbye!"
break
else:
printInvalid choice. Please enter a valid option Add a container list set, dictionary, or tuple to your Python program. Your code should update the elements in the container and print the values using a loop.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
