Question

Python Language:Define function that asks for a name and displays it.Define function that takes a name...

Python Language:Define function that asks for a name and displays it.Define function that takes a name as a parameter and displays the nameDefine function "smallest" that returns the smallest number from a list given as parameterDefine function that takes length in feet and inches and returns meters.Implement queues using lists in Python. Define functions enqueue(list, element) and dequeue(list) that perform needed operations.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:

Answering first 4 parts as per policies:


def ask_name():
name = input('Enter the name: ')
print('Entered Name is:', name)

def print_name(name):
print('Name:', name)

def smallest(l):
smallest = l[0]
for i in l:
if i<smallest:
smallest = i
return smallest

def feet_to_metres(feet, inches):
metres = ((12*feet)+inches)*0.0254
return metres

PLEASE UPVOTE IF YOU FOUND THIS HELPFUL!

Add a comment
Know the answer?
Add Answer to:
Python Language:Define function that asks for a name and displays it.Define function that takes a name...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT