''' Program: 1 Description: Finding the minimum string value This can be done using the min() along with a value Author: Tanu Nanda Prabhu ''' # Calling the mini() function by passing the string value minimum = min("programming") print(minimum) ''' Program: 2 Description: Finding the maximum string value This can be done using the max() along with a value Author: Tanu Nanda Prabhu ''' # Calling the max() function by passing the string value maximum = max("python") print(maximum) ''' Program: 3 Description: Playing with '+' and increment operators in Python Author: Tanu Nanda Prabhu ''' a = 7 a1 = a + 1 a2 = a++ if a1 == a2: print("Success") else: print("Failure") ''' Program: 4 Description: Playing with increment and decrement operators in Python Author: Tanu Nanda Prabhu ''' a = 7 a1 = 0 a2 = 0 a1 += 1 a2 -= 1 if a1 == a2: print("Success") else: print("Failure") ''' Program: 5 Description: Performing list operations Author: Tanu Nanda Prabhu ''' l = {'a1':"1", 'a2': "2", 'a3':"3"} for x, y in l: print(x[0], end = " ") ''' Program: 6 Description: Performing list operations Author: Tanu Nanda Prabhu ''' l = {'a1':"1", 'a2': "2", 'a3':"3"} for x in l: print(x[1], end = " ") ''' Program: 7 Description: Performing list operations Author: Tanu Nanda Prabhu ''' l = {'a1':"1", 'a2': "2", 'a3':"3"} for x in l: print(x, end = " ") ''' Program: 8 Description: Performing list operations using index Author: Tanu Nanda Prabhu ''' l = ["Every", 1, "Can't", "Be", "The", "Best", 1] print(l[4][2]) ''' Program: 9 Description: Performing quick mathematics using Python Author: Tanu Nanda Prabhu ''' value = 6/2*(1+2) print(value) ''' Program: 10 Description: Performing quick mathematics using eval Author: Tanu Nanda Prabhu ''' value = ('1 + 3 * 2') print(eval(value))