Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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="")
Source by www.guru99.com #
 
PREVIOUS NEXT
Tagged: #python #function #map #function
ADD COMMENT
Topic
Name
1+9 =