With this code I am trying to generate simple multiplication tables. The program should ask for input and multiple that number in a range up to 15 and the generate the multiplication table for the number. After the if_name_ == 'main': line I end up with a syntax error after the colon. I normally program in python 2, so python 3 is a bit new to me but I'm not sure what the difference is. Below I have listed the short but full code. Any help would be much appreciated.
'''Multiplication Table'''
def multi_table(a):
for i in range(1,16):
print(' {0} x {1} = {2} '.format(a, i, a*i))
if_name_ == '_main_':
a = input('Enter a number: ')
multi_table(float(a))