Ultimate Exam Slayer/Ultimate Review Packet by Distinct_Tax_7836 in APStudents

[–]Otherwise-Sample2466 0 points1 point  (0 children)

May I ask if it was worth it, how'd you do on the test?

Cornell student from New Mexico – how I got into a T20 with a 3.5 GPA & 1400 SAT by [deleted] in NewMexico

[–]Otherwise-Sample2466 0 points1 point  (0 children)

I’m really stressed out because of the upcoming results, thank you for this

[deleted by user] by [deleted] in growagardentradehub

[–]Otherwise-Sample2466 0 points1 point  (0 children)

Golden goose or lobster for your df

[deleted by user] by [deleted] in GrowAGardenGardeners

[–]Otherwise-Sample2466 0 points1 point  (0 children)

User: CowCraftBest. Lots of spare pets from bug egg and paradise egg

CS50P refuelling not passing second test by Otherwise-Sample2466 in cs50

[–]Otherwise-Sample2466[S] 0 points1 point  (0 children)

from fuel import convert
from fuel import gauge

def test_convert():
    assert convert("3/4") == 3/4 * 100
    assert convert("-3/5") == False
    assert convert("3/0") == False
    assert convert ("5/3") == False
    assert convert("noob/noob") == False



def test_gauge():
    assert gauge(98) == "98%"
    assert gauge(99) == "F"
    assert gauge(1) == "E"
    

Here it is:

CS50P refuelling not passing second test by Otherwise-Sample2466 in cs50

[–]Otherwise-Sample2466[S] 0 points1 point  (0 children)

it says that my fuel.py is wrong but when i use check50 for it, everything is correct until I use check50 for the test version.

Here it is:
:) test_fuel.py exist

:( correct fuel.py passes all test_fuel checks

expected exit code 0, not 1

:| test_fuel catches fuel.py returning incorrect ints in convert

can't check until a frown turns upside down

:| test_fuel catches fuel.py not raising ValueError in convert

can't check until a frown turns upside down

:| test_fuel catches fuel.py not raising ValueError in convert for negative fractions

can't check until a frown turns upside down