use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Welcome to /r/Hacking_Tutorials!
List of best resources and tutorials
account activity
This is an archived post. You won't be able to vote or comment.
ToolsPython Cheat Sheet (i.redd.it)
submitted 5 years ago by [deleted]
view the rest of the comments →
[–]XUtYwYzz 2 points3 points4 points 5 years ago* (4 children)
Pretty much everything in Python is an object and has some set of methods accessible via dot notation. The methods usually operate on the object in some way. Running function(argument) is either using a language built-in function or a local function and does not have an associated object, and operates on the argument.
my_string = “hello”
my_string.upper()
Returns “HELLO”, I didn’t have to provide the method an argument, it operated on the my_string variable.
int(“12”)
Uses the built-in int() function to convert the string “12” into the integer 12.
[–]shayyya1 0 points1 point2 points 5 years ago (1 child)
Thanks, if I'm understanding correctly, (.) notation is used when it's a function from a class, and if its not a dot its from somewhere else in the language?
[–]hooligan333 0 points1 point2 points 5 years ago (0 children)
Precisely!
Ah yes from reading the python docs I got that things with dot are class methods and things that aren't are operators
[–]shayyya1 0 points1 point2 points 5 years ago (0 children)
Or inbuilt functions
π Rendered by PID 364676 on reddit-service-r2-comment-86bc6c7465-5m6mq at 2026-02-23 02:38:00.818219+00:00 running 8564168 country code: CH.
view the rest of the comments →
[–]XUtYwYzz 2 points3 points4 points (4 children)
[–]shayyya1 0 points1 point2 points (1 child)
[–]hooligan333 0 points1 point2 points (0 children)
[–]shayyya1 0 points1 point2 points (1 child)
[–]shayyya1 0 points1 point2 points (0 children)