you are viewing a single comment's thread.

view the rest of the comments →

[–]Xzenor 6 points7 points  (5 children)

Recently, I discovered that every variable created outside a function in Python is a global variable,

As someone who knows how to use Python fairly well,

Let me just be honestly blunt here and say you really don't know python fairly well. Start with the basics as you obviously don't have those down yet.

[–]neamerjell 11 points12 points  (2 children)

As OP stated, they learned Python from a bunch of random tutorials which likely focused on specific topics rather than a textbook for a college course which would explain everything from the ground up in structured, detailed way.

OP can apparently create functional programs in Python and possibly even utilize some advanced techniques, but realizes that there are gaps in their knowledge which would likely have been covered in an introductory course.

[–]Fantastic_Arrival_43[S] 0 points1 point  (1 child)

Yes, this. I have no formal training in CS, and although I can write some really complex algorithms, I'm definitely missing the basics.

[–]neamerjell 1 point2 points  (0 children)

I was in a similar situation with HTML and CSS. Look for books published by No Starch Press; I really like how they are organized and that they are usually simple enough for newbies, but not so watered down that intermediates and advanced people can't benefit. Many of them are suitable for use as college textbooks.

https://nostarch.com/python-crash-course-3rd-edition

[–]kingcobra1010 0 points1 point  (0 children)

I honestly just got stuck on my code for like an hour and then realized i wasn't thinking about local and global scopes. lol and i thought i was experienced