So I was doing some really basic programming because I'm very new, and I wanted to do user inputs from the console to define variables. I though the input()
function would do it, but I think it's taking what I put in as a string instead.
I stripped down all the code to a really basic program that just multiplies the given number. I've tried putting in raw_input(), but my online compiler doesn't like that. NameError: name 'raw_input' is not defined
n = input("Number:")
print(n*2)
Instead all it does it print the number twice, (5 would be 55, 2 would be 22 etc.)