135201
You will be muted until you read the rules. Read them! @Rules_for_Python A group about the Python programming language. Offtopic things go here: @pythonofftopic Resources to learn python: @pythonres Group for Hy: @hylang Selenium: @SeleniumPython
Hey I am working in support role I am planning to shift to python developer
Читать полностью…
Simple search on the Udemy site should provide that information
Читать полностью…
Any one give me step by step topic for python developer
Читать полностью…
wanna know why??
at line 68-73 you are checking that condition before adding the book
first time you add the book length of borrowed books increases => 1
secomd time you add it becomes => 2
third time it becomes => 3
when fourth time you add the book, your condition checks if the length of borrowed books is *higher* than 3, but currently the length is 3 right now, so it adds the 4th book as well and length becomes => 4, but next time when try to add, the condition catches you and dosent let you add more.
you should change that condition to either
len(borrowed_books) == 3
len(borrowed_books) >= 3Читать полностью…
I created an object and i was calling a method called (borrow_book). It was supposed to check if there is still 3 books borrowed or not and if not, student can borrow, else they can't
Читать полностью…
It's calling child method now, but condition isn't working
Читать полностью…
When i tried, in output, it gave result of parent class's method
Читать полностью…
Hey can anyone tell what I need to learn along with python for domain shift
Читать полностью…
print(f"Iteration {iteration}: x = {x_next:.5f}, f(x) = {f(x_next):.5f}")
Hi
Can you explain this print in python ?
Like " and {}
Check out @PythonRes, a channel for Python resources - video courses, pdf books, tutorials and other info to help you learn Python.
Читать полностью…
if you're unsure, you can print the object and see the output. eg: print(stud.borrow_book) and print(memb1.borrow_book)
pro tip: instead of using print(), better use attr() for this
https://github.com/iamshammas/python-oops/blob/main/library_oops.py#L60-L68
Читать полностью…
In Method overriding,
When we call (subclass_name.method())
Will it call parent class's method or child class's method?
I have same name method in parent and child class
This group is not for people who are too lazy to try to find answers on their own.
Читать полностью…