Python tabular problems -


i have been trying question while code keep running without returning implement following function fahrenheit return fahrenheit equivalent of celsius temperature.f = 9/5c + 32 : use function write program prints chart showing fahrenheit equivalents of celsius temperatures 0–100 degrees. use 1 position of precision right of decimal point results. print outputs in neat tabular format minimizes number of lines of output while remaining readable

here code

def temp_check(c):     f = 0     c in range(0, 101):         f = (9/5) * c +32         print "celsius %3.1f c"  %"fahriant f"         print "         %3.1f c"  % f(c, f) 

you need call temp_check function adding line after (no indentation):

temp_check(none) 

the value passed temp_check doesn't matter here, since you're overwriting anyway.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -