Tfw brainlet

>tfw brainlet

python 3 isnt printing "Hi" + name +"!" for some reason WTF please explain this to a brainlet like me

WTF
>vs code
>infinite while loop
def greet():
name = input("Enter your name: ")
print("Hello ", name);
greet()

Works on My Machineā„¢

use the terminal instead of console

you're telling it to print something as long as a variable is true, which it always is

So much cancer in a single post.

python 2 or 3, nigger?

Just remove the while statement and you should be good to go.

Thanks guys, I really needed help with my homework.

why do you need the boolean flag and the while loop?

Wtf is the point of the while statement and namedefined variable, take that shit out.

Shouldn't matter. I tried it in the VSCode console and it works perfectly.
OP, you should try pressing Ctrl + Shift + P and typing "run python file in terminal"

If he's using python 2 he needs to use raw_input not input

source: expert programmer

OP, use JS like a normal human being and just practice on JSfiddle

Python is botnet and will give you cancer

You're right on that~

3
this works, thanks!

i added that nonsense just to see if it makes a difference, because when i ran

def greet():
name = input("Enter your name: ")
print("Hello ", name);
greet()

the first time it wasnt working

He said hes using python 3

tru didn't see that

Then why post the version with the nonsense in the first place??

because im a brainlet please sage :(

...