What's Invalid about this syntax?

python

#1

I'm trying to make a program where the user enters a number and the program spits out all numbers that number is divisible by but I keep getting syntax errors.

File "python", line 2
Var1 = range(10, 50)
^
SyntaxError: invalid syntax

num = int(input("Please enter a number: ")
x = range(10, 50)

for i in x: 
    if num % i == 0:
        print i

I've also tried this but keep getting a similar error.

Traceback (most recent call last):
File "python", line 3
for i in range(2,101):
^
SyntaxError: invalid syntax

num = int(input("Please enter a number: ")

for i in range(2,101):
	if num % i == 0:
		print i

#2

this line:

num = int(input("Please enter a number: ")

count the number of opening and closing brackets


#3

OoooooomMMMGgggg I feel so noob :sweat_smile: