Best Resources for Learning OOP in Python? Recommendations Needed! /u/Cute_Ad_2430 Python Education

Best Resources for Learning OOP in Python? Recommendations Needed! /u/Cute_Ad_2430 Python Education

Hey everyone, I’m looking to strengthen my understanding of Object-Oriented Programming (OOP) in Python. I’m particularly interested in online courses or tutorials that break down OOP concepts like classes, inheritance, polymorphism, etc., in an easy-to-follow way.

If you’ve taken a course or found a resource that really helped solidify your understanding, I’d love to hear about it! Whether it’s from platforms like Udemy, Coursera, free YouTube tutorials, or even books that offer practical examples, drop your recommendations below. Thanks in advance!

submitted by /u/Cute_Ad_2430
[link] [comments]

​r/learnpython Hey everyone, I’m looking to strengthen my understanding of Object-Oriented Programming (OOP) in Python. I’m particularly interested in online courses or tutorials that break down OOP concepts like classes, inheritance, polymorphism, etc., in an easy-to-follow way. If you’ve taken a course or found a resource that really helped solidify your understanding, I’d love to hear about it! Whether it’s from platforms like Udemy, Coursera, free YouTube tutorials, or even books that offer practical examples, drop your recommendations below. Thanks in advance! submitted by /u/Cute_Ad_2430 [link] [comments] 

Hey everyone, I’m looking to strengthen my understanding of Object-Oriented Programming (OOP) in Python. I’m particularly interested in online courses or tutorials that break down OOP concepts like classes, inheritance, polymorphism, etc., in an easy-to-follow way.

If you’ve taken a course or found a resource that really helped solidify your understanding, I’d love to hear about it! Whether it’s from platforms like Udemy, Coursera, free YouTube tutorials, or even books that offer practical examples, drop your recommendations below. Thanks in advance!

submitted by /u/Cute_Ad_2430
[link] [comments]  Hey everyone, I’m looking to strengthen my understanding of Object-Oriented Programming (OOP) in Python. I’m particularly interested in online courses or tutorials that break down OOP concepts like classes, inheritance, polymorphism, etc., in an easy-to-follow way. If you’ve taken a course or found a resource that really helped solidify your understanding, I’d love to hear about it! Whether it’s from platforms like Udemy, Coursera, free YouTube tutorials, or even books that offer practical examples, drop your recommendations below. Thanks in advance! submitted by /u/Cute_Ad_2430 [link] [comments]

Read more
Just like Chrome for Android, Microsoft Edge for Android now also lets you move the address bar to the bottom of the screen /u/Leopeva64-2 Android

Just like Chrome for Android, Microsoft Edge for Android now also lets you move the address bar to the bottom of the screen /u/Leopeva64-2 Android

Just like Chrome for Android, Microsoft Edge for Android now also lets you move the address bar to the bottom of the screen /u/Leopeva64-2 Android

Just like Chrome for Android, Microsoft Edge for Android now also lets you move the address bar to the bottom of the screen submitted by /u/Leopeva64-2
[link] [comments]

​r/Android submitted by /u/Leopeva64-2 [link] [comments] 

Just like Chrome for Android, Microsoft Edge for Android now also lets you move the address bar to the bottom of the screen submitted by /u/Leopeva64-2
[link] [comments]

  submitted by /u/Leopeva64-2 [link] [comments]

Read more

Does any method get called when an object is evaluated? /u/Informal-Addendum435 Python Education

Does any method get called when an object is evaluated? /u/Informal-Addendum435 Python Education

In expressions like

x 

and

x + y 

What are all the methods that get called on x ?

In the second case, __add__ will be called.

Is there a method that will be called in the first case?

submitted by /u/Informal-Addendum435
[link] [comments]

​r/learnpython In expressions like x and x + y What are all the methods that get called on x ? In the second case, __add__ will be called. Is there a method that will be called in the first case? submitted by /u/Informal-Addendum435 [link] [comments] 

In expressions like

x 

and

x + y 

What are all the methods that get called on x ?

In the second case, __add__ will be called.

Is there a method that will be called in the first case?

submitted by /u/Informal-Addendum435
[link] [comments]  In expressions like x and x + y What are all the methods that get called on x ? In the second case, __add__ will be called. Is there a method that will be called in the first case? submitted by /u/Informal-Addendum435 [link] [comments]

Read more

“Unsupported type” even though rsub is defined /u/Informal-Addendum435 Python Education

“Unsupported type” even though rsub is defined /u/Informal-Addendum435 Python Education

class Test: def __sub__(self, other): return NotImplemented def __rsub__(self, other): return 1 print(Test() - Test()) 

I would like to make a class that does something on rsub but does nothing on sub.

However, the code above gives

 print(Test() - Test()) ~~~~~~~^~~~~~~~ TypeError: unsupported operand type(s) for -: 'Test' and 'Test' 

even though __rsub__ is defined for Test

I know the docs say

These functions are only called if the left operand does not support the corresponding operation, and the operands are of different types

But how can I do what I want?

submitted by /u/Informal-Addendum435
[link] [comments]

​r/learnpython class Test: def __sub__(self, other): return NotImplemented def __rsub__(self, other): return 1 print(Test() – Test()) I would like to make a class that does something on rsub but does nothing on sub. However, the code above gives print(Test() – Test()) ~~~~~~~^~~~~~~~ TypeError: unsupported operand type(s) for -: ‘Test’ and ‘Test’ even though __rsub__ is defined for Test I know the docs say These functions are only called if the left operand does not support the corresponding operation, and the operands are of different types But how can I do what I want? submitted by /u/Informal-Addendum435 [link] [comments] 

class Test: def __sub__(self, other): return NotImplemented def __rsub__(self, other): return 1 print(Test() - Test()) 

I would like to make a class that does something on rsub but does nothing on sub.

However, the code above gives

 print(Test() - Test()) ~~~~~~~^~~~~~~~ TypeError: unsupported operand type(s) for -: 'Test' and 'Test' 

even though __rsub__ is defined for Test

I know the docs say

These functions are only called if the left operand does not support the corresponding operation, and the operands are of different types

But how can I do what I want?

submitted by /u/Informal-Addendum435
[link] [comments]  class Test: def __sub__(self, other): return NotImplemented def __rsub__(self, other): return 1 print(Test() – Test()) I would like to make a class that does something on rsub but does nothing on sub. However, the code above gives print(Test() – Test()) ~~~~~~~^~~~~~~~ TypeError: unsupported operand type(s) for -: ‘Test’ and ‘Test’ even though __rsub__ is defined for Test I know the docs say These functions are only called if the left operand does not support the corresponding operation, and the operands are of different types But how can I do what I want? submitted by /u/Informal-Addendum435 [link] [comments]

Read more

What types does for loop accept? /u/Informal-Addendum435 Python Education

What types does for loop accept? /u/Informal-Addendum435 Python Education

def print_all(x: ???): for item in x: print(x) 

what should the typehint for the parameter be?

I guess collections.abc.Iterable, but I’d be surprised if for loops don’t also always work with Iterators too, and Iterators don’t have to also be Iterables

submitted by /u/Informal-Addendum435
[link] [comments]

​r/learnpython def print_all(x: ???): for item in x: print(x) what should the typehint for the parameter be? I guess collections.abc.Iterable, but I’d be surprised if for loops don’t also always work with Iterators too, and Iterators don’t have to also be Iterables submitted by /u/Informal-Addendum435 [link] [comments] 

def print_all(x: ???): for item in x: print(x) 

what should the typehint for the parameter be?

I guess collections.abc.Iterable, but I’d be surprised if for loops don’t also always work with Iterators too, and Iterators don’t have to also be Iterables

submitted by /u/Informal-Addendum435
[link] [comments]  def print_all(x: ???): for item in x: print(x) what should the typehint for the parameter be? I guess collections.abc.Iterable, but I’d be surprised if for loops don’t also always work with Iterators too, and Iterators don’t have to also be Iterables submitted by /u/Informal-Addendum435 [link] [comments]

Read more

Where to start learning for a math major? /u/Lazy_Reputation_4250 Python Education

Where to start learning for a math major? /u/Lazy_Reputation_4250 Python Education

Hello, I am currently a math major in my freshman year. I have taken proof based math courses and logic courses, and I’m not entirely sure if that will help me learn python. If it is, what’s a source to start quickly learning the basics?

submitted by /u/Lazy_Reputation_4250
[link] [comments]

​r/learnpython Hello, I am currently a math major in my freshman year. I have taken proof based math courses and logic courses, and I’m not entirely sure if that will help me learn python. If it is, what’s a source to start quickly learning the basics? submitted by /u/Lazy_Reputation_4250 [link] [comments] 

Hello, I am currently a math major in my freshman year. I have taken proof based math courses and logic courses, and I’m not entirely sure if that will help me learn python. If it is, what’s a source to start quickly learning the basics?

submitted by /u/Lazy_Reputation_4250
[link] [comments]  Hello, I am currently a math major in my freshman year. I have taken proof based math courses and logic courses, and I’m not entirely sure if that will help me learn python. If it is, what’s a source to start quickly learning the basics? submitted by /u/Lazy_Reputation_4250 [link] [comments]

Read more

Is this correct for VS Code? /u/j3ss222 Python Education

Is this correct for VS Code? /u/j3ss222 Python Education

Hi everyone, please let me know if this isn’t the right place to post but I wanted to start learning how to code (I’m a complete beginner, never done so before) and I saw a lot of advice to just download python and start trying different things. So I downloaded Python 3.13 and followed a tutorial (linked here) that suggested I download VS Code. I did so and I think set everything up correctly (except maybe not the interpreter, still confused on that tbh) but I when I tried to run my first print script I keep seeing the file name/location in the terminal (I cant upload an image but it looks like this before and after each line: MacBook-Air-3:py_scripts MyUsername$ /usr/local/bin/python3 "/Users/MyUsername/Desktop/py_scripts/Hello World.py".

Is this supposed to be there or Is there a way to get rid of it? I can also upload an image on imgur or something if helpful. Thank you!!

submitted by /u/j3ss222
[link] [comments]

​r/learnpython Hi everyone, please let me know if this isn’t the right place to post but I wanted to start learning how to code (I’m a complete beginner, never done so before) and I saw a lot of advice to just download python and start trying different things. So I downloaded Python 3.13 and followed a tutorial (linked here) that suggested I download VS Code. I did so and I think set everything up correctly (except maybe not the interpreter, still confused on that tbh) but I when I tried to run my first print script I keep seeing the file name/location in the terminal (I cant upload an image but it looks like this before and after each line: MacBook-Air-3:py_scripts MyUsername$ /usr/local/bin/python3 “/Users/MyUsername/Desktop/py_scripts/Hello World.py”. Is this supposed to be there or Is there a way to get rid of it? I can also upload an image on imgur or something if helpful. Thank you!! submitted by /u/j3ss222 [link] [comments] 

Hi everyone, please let me know if this isn’t the right place to post but I wanted to start learning how to code (I’m a complete beginner, never done so before) and I saw a lot of advice to just download python and start trying different things. So I downloaded Python 3.13 and followed a tutorial (linked here) that suggested I download VS Code. I did so and I think set everything up correctly (except maybe not the interpreter, still confused on that tbh) but I when I tried to run my first print script I keep seeing the file name/location in the terminal (I cant upload an image but it looks like this before and after each line: MacBook-Air-3:py_scripts MyUsername$ /usr/local/bin/python3 "/Users/MyUsername/Desktop/py_scripts/Hello World.py".

Is this supposed to be there or Is there a way to get rid of it? I can also upload an image on imgur or something if helpful. Thank you!!

submitted by /u/j3ss222
[link] [comments]  Hi everyone, please let me know if this isn’t the right place to post but I wanted to start learning how to code (I’m a complete beginner, never done so before) and I saw a lot of advice to just download python and start trying different things. So I downloaded Python 3.13 and followed a tutorial (linked here) that suggested I download VS Code. I did so and I think set everything up correctly (except maybe not the interpreter, still confused on that tbh) but I when I tried to run my first print script I keep seeing the file name/location in the terminal (I cant upload an image but it looks like this before and after each line: MacBook-Air-3:py_scripts MyUsername$ /usr/local/bin/python3 “/Users/MyUsername/Desktop/py_scripts/Hello World.py”. Is this supposed to be there or Is there a way to get rid of it? I can also upload an image on imgur or something if helpful. Thank you!! submitted by /u/j3ss222 [link] [comments]

Read more

how do I use selenium within Helium? /u/randomusername11222 Python Education

how do I use selenium within Helium? /u/randomusername11222 Python Education

With selenium I can locate stuff using for example

content = driver.find_element(By.CLASS_NAME, 'content')content = driver.find_element(By.CLASS_NAME, 'content') 

Within Helium docs, it seems that’s possible to use selenium stuff within helium, but I didn’t quite understand the paragraph within their docs/cheatsheet named as “Combining Helium and Selenium’s APIs”

https://github.com/mherrmann/helium/blob/master/docs/cheatsheet.md

submitted by /u/randomusername11222
[link] [comments]

​r/learnpython With selenium I can locate stuff using for example content = driver.find_element(By.CLASS_NAME, ‘content’)content = driver.find_element(By.CLASS_NAME, ‘content’) Within Helium docs, it seems that’s possible to use selenium stuff within helium, but I didn’t quite understand the paragraph within their docs/cheatsheet named as “Combining Helium and Selenium’s APIs” https://github.com/mherrmann/helium/blob/master/docs/cheatsheet.md submitted by /u/randomusername11222 [link] [comments] 

With selenium I can locate stuff using for example

content = driver.find_element(By.CLASS_NAME, 'content')content = driver.find_element(By.CLASS_NAME, 'content') 

Within Helium docs, it seems that’s possible to use selenium stuff within helium, but I didn’t quite understand the paragraph within their docs/cheatsheet named as “Combining Helium and Selenium’s APIs”

https://github.com/mherrmann/helium/blob/master/docs/cheatsheet.md

submitted by /u/randomusername11222
[link] [comments]  With selenium I can locate stuff using for example content = driver.find_element(By.CLASS_NAME, ‘content’)content = driver.find_element(By.CLASS_NAME, ‘content’) Within Helium docs, it seems that’s possible to use selenium stuff within helium, but I didn’t quite understand the paragraph within their docs/cheatsheet named as “Combining Helium and Selenium’s APIs” https://github.com/mherrmann/helium/blob/master/docs/cheatsheet.md submitted by /u/randomusername11222 [link] [comments]

Read more