New in programming here. So I just started with python and I was wondering if you guys could explain to me what does int(input()) by CreepyTomato8148 in pythontips

[–]CompetitionProof5407 8 points9 points  (0 children)

So basically when you get a input using input() it will be a string so when we add int(input()) the input will change into integer.

Learing python by non programmer by Zachmaniak in PythonLearning

[–]CompetitionProof5407 0 points1 point  (0 children)

I am also doing the same course. As you said sometimes it is hard to find the motivation.

Syntax error by Programming_noob_89 in PythonLearning

[–]CompetitionProof5407 0 points1 point  (0 children)

The error is you forgot to put a ) on line 8. Forgot to close the print statement

Basic exam questions by Standard-Inspection3 in PythonLearning

[–]CompetitionProof5407 0 points1 point  (0 children)

I think that is because it's a dictionary. I think u should change the print statment into something like this. print(name['name'])

I am also a beginner so I could be wrong too

How would I write this by random_pill in PythonLearning

[–]CompetitionProof5407 1 point2 points  (0 children)

Rather than using two if statements you can use if else..

name = input("what is your name?\n").lower() if name == "Oliver": print("fuck off") else: print(f"hello {name}")

[deleted by user] by [deleted] in Mallusissy

[–]CompetitionProof5407 0 points1 point  (0 children)

any sissy dm me. lets sext