Notification texts go here Contact Us Buy Now!

what would be the output of the below python code

what would be the output of the below python code

 '''

what would be the output of the below python code
'''

list=[1,2,1,3,3,1,2,1,2,1]
tuple1=("A","B","C","D")
tuple+=("E",)
list2=[]

for var1 in range(5,len(list1)):
    list2.append(list1[var1-5]+list1[var1])

for var1 in range(0,len(list2)):
    print(tuple1[var1],list2[var1])

'''
OUTPUT
Ans is Error Because of Tuple is Immutable
'''

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.