def myfun(): num=int(input("Display multiplication table of: ")) for i in range(1,11,1): print(f"{num} * {i} ={num*i}") if __name__=="__main__": myfun()
Display multiplication table of: 14
14 * 1 =14
14 * 2 =28
14 * 3 =42
14 * 4 =56
14 * 5 =70
14 * 6 =84
14 * 7 =98
14 * 8 =112
14 * 9 =126
14 * 10 =140