This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Take inputs from user as list | |
# Then apply this loop | |
# for example user input is (1+2-3) | |
# the list is = ['1','+','2','-','3'] | |
# it check the opperands in list[2] and do the operation b/w list[1] and list[3] and pops all first three elements in | |
# list add the new value in list[1] and operation goes on ...... | |
for i in range(len(value)): | |
try: | |