?
What will be the output of the following Python code snippet?
What will be the output of the following Python code snippet?
my_string = "hello world"
k = [(i.upper(), len(i)) for i in my_string]
print(k)
my_string = "hello world"
k = [(i.upper(), len(i)) for i in my_string]
print(k)
Join the Discussion
Login to post a comment or share your explanation.
Login