Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7
prasad jagdale even the worsest start is better than none. After getting input just check if grade is A. As a beginner just do ONE aspect. Understanding will come with coding.
17th May 2020, 8:59 AM
Oma Falk
Oma Falk - avatar
+ 5
Hi prasad jagdale no one has a code for a new problem, you have to write one. So please do it and come back. You just need an if else ladder.
17th May 2020, 8:22 AM
Avinesh
Avinesh - avatar
+ 4
Fun fact: the Python documentation of the bisect function has a sample code for the exact same problem. :) However if you are a beginner, you should come up with a simpler solution on your own. https://docs.python.org/3/library/bisect.html
17th May 2020, 8:36 AM
Tibor Santa
Tibor Santa - avatar
+ 3
a case for if....elif
17th May 2020, 8:22 AM
Oma Falk
Oma Falk - avatar
+ 2
Ok Avinesh will paste here in sometime .
17th May 2020, 8:23 AM
prasad jagdale
prasad jagdale - avatar
+ 2
Okay Tibor santa , Indeed I am a beginner and will try to come up with a simpler code .
17th May 2020, 8:39 AM
prasad jagdale
prasad jagdale - avatar
+ 1
Thanks a lot Abhay bro
17th May 2020, 9:11 AM
prasad jagdale
prasad jagdale - avatar
0
prasad jagdale please do not bring your homework here without showing us your attempt and following the 8 rules for getting help from the community. https://www.sololearn.com/Blog/38/8-simple-rules-to-get-help-from-the-community Thanks and happy coding.
21st Nov 2020, 3:54 PM
BroFar
BroFar - avatar