mapping in python string
# mapping function
def uppercase(u):
return str(u.upper())
map_iterator = map(uppercase,['a','b','c'])
mylist = list(map_iterator)
print(mylist)
mapping in python string
# mapping function
def uppercase(u):
return str(u.upper())
map_iterator = map(uppercase,['a','b','c'])
mylist = list(map_iterator)
print(mylist)
about map function in python
# Add two lists using map and lambda
numbers1 = [1, 2, 3]
numbers2 = [4, 5, 6]
result = map(lambda x, y: x + y, numbers1, numbers2,axis=1)
print(list(result))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us