Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
New algorithm added #3934
New algorithm added #3934
Conversation
This comment has been minimized.
This comment has been minimized.
|
I have work a lot on this file and again make new Pr this time i follow all the guidelines styling conventions now lets see what will happen?? |
|
Thank god i made my first ever github contribution, i was very difficult for a beginner, but i did it, jus please review it and merged it i will more happy if you will merged it thanks. |
Co-authored-by: xcodz-dot <71920621+xcodz-dot@users.noreply.github.com>
| result = float(current * resistance) | ||
| return result |
cclauss
Nov 24, 2020
Member
I think your function should return a dict or even better a namedtuple which provides both the name of the value and the value itself.
Creating result on one line and getting rid of it on the next is not helpful.
| result = float(current * resistance) | |
| return result | |
| return {"voltage": float(current * resistance)} |
| >>> ohms_law(voltage=10, resistance=5,current=0 ) | ||
| 2.0 | ||
| >>> ohms_law(current=1, resistance=10, voltage=0) | ||
| 10.0 |
Co-authored-by: Christian Clauss <cclauss@me.com>
|
But cclauss thank you so much showing interest in my code before you nobody even tell me the problems with my code thank you again and i will be add these changes as you tell me . |
|
So i got it what you suggest me is
|
|
cclauss i did it finally |


Describe your change:
Finnaly i did it now i hope all checks should be clear
Checklist:
Fixes: #{$ISSUE_NO}.