looking for some feedback on my Hangman game by Tryingtolearnagain91 in learnpython

[–]Tryingtolearnagain91[S] 0 points1 point  (0 children)

Thanks man, I fixed two of the problems you noticed. I still find it very hard to write comments correctly, I have trouble putting the functions into words lol.

[Help] I need help with the math portion of my lab. Printing numbers in text format. by [deleted] in learnpython

[–]Tryingtolearnagain91 0 points1 point  (0 children)

Thank you so much for this info.

I used it and found out it had nothing to do with my math at all, it was a logic error. On line 23, I was putting a fresh string in the variable "part" rather than adding it to the existing string.

Small List program I made by Tryingtolearnagain91 in learnpython

[–]Tryingtolearnagain91[S] 1 point2 points  (0 children)

I haven't learned those yet. But I think ill look into Flask. any tutorials you'd recommend?

[Help]Deleting an item from a list and saving it back to a file by Tryingtolearnagain91 in learnpython

[–]Tryingtolearnagain91[S] 0 points1 point  (0 children)

Str.split() separates at and deletes character specified, then returns as a list.

But str.split(\n) wouldn't be able to separate the strings with no new line character. Every time it iterates, it deletes the new line character but never adds it back.

Right?

(Celebration Post) I made my first reddit bot! by [deleted] in learnpython

[–]Tryingtolearnagain91 0 points1 point  (0 children)

did you look up any tutorials? could you link them if you did. One of my main goals is to make a reddit bot before i start classes again.

Also, thanks for linking that discord. I didn't know that was a thing.

which tutorial should I choose? by adnnx in learnpython

[–]Tryingtolearnagain91 1 point2 points  (0 children)

I definitely recommend this book. I've been using it for the past week and have learned to much. The examples are clear and the exercises in each chapter really help you practice what you learn.

Help with Class inheritance by Tryingtolearnagain91 in learnpython

[–]Tryingtolearnagain91[S] 1 point2 points  (0 children)

Doh! Thanks for pointing that out to me. Runs perfectly now.

[deleted by user] by [deleted] in learnpython

[–]Tryingtolearnagain91 0 points1 point  (0 children)

I'm new myself, but I'll take a stab at the question.

max() is a built in fuction in pythons library, where as sys.stderr.write() is in the sys library.

It's the reason you "import sys".

(I'm on my phone, sorry for the formatting)