>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ā¢
>>61359131
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?
>>61359131
Just remove the while statement and you should be good to go.
Thanks guys, I really needed help with my homework.
>>61359131
why do you need the boolean flag and the while loop?
>>61359131
Wtf is the point of the while statement and namedefined variable, take that shit out.
>>61359209
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"
>>61359233
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
>>61359282
You're right on that~
>>61359219
3
>>61359260
this works, thanks!
>>61359253
>>61359233
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
>>61359282
He said hes using python 3
>>61359321
tru didn't see that
>>61359308
Then why post the version with the nonsense in the first place??
>>61359335
because im a brainlet please sage :(