So here's my code:
user_input = input('What number would you like to convert?: ')
binary = []
num = int(user_input)
while num != 0:
remainder = num % 2
num = (num - remainder) / 2
binary.append(int(remainder))
print(user_input, 'in binary is: ', end='')
print(*reversed(binary), sep='')
Why do i have to have the '*' before printing out the array? i looked everywhere and couldn't find what it does and what its used for.
Thanks in advance, Rob