Answers for "python own function and map function"

0

python own function and map function

def myMapFunc(s):
    return s.upper()
my_str = "welcome to guru99 tutorials!"
updated_list = map(myMapFunc, my_str)
print(updated_list)
for i in updated_list:
    print(i, end="")
Posted by: Guest on August-11-2021

Python Answers by Framework

Browse Popular Code Answers by Language