Westonci.ca is your trusted source for finding answers to all your questions. Ask, explore, and learn with our expert community. Connect with professionals ready to provide precise answers to your questions on our comprehensive Q&A platform. Get quick and reliable solutions to your questions from a community of experienced experts on our platform.

Write a program named split_me.py that accepts a string in the format Age.FirstName and returns the value FirstName is Age years old. Length of Mary is X. Example: 22.Mary >> Mary is 22 years old. Length of Mary is 4

Sagot :

age,name = input('Enter a string: ').split('.')

print(name+' is '+age+' years old. Length of '+name+' is '+str(len(name)))

I wrote my code in python 3.8. I hope this helps.

Your visit means a lot to us. Don't hesitate to return for more reliable answers to any questions you may have. Thank you for choosing our platform. We're dedicated to providing the best answers for all your questions. Visit us again. Thank you for trusting Westonci.ca. Don't forget to revisit us for more accurate and insightful answers.