+ 1

I’m supposed to add an additional function to this code which will be ’activated’ in case the user types in 0.

This method should then generate a random number, send it to the previous fahr_to_cel function to convert it into celcius which will then be returned.This method should NOT have any parameters. I also dont know if both functions should have the same name or not. I played with the code and made 2 classes with functions and one of them inherited the other but didnt work. https://code.sololearn.com/c3W2whpgmd07/#py

17th Feb 2022, 12:41 PM
Lenoname
2 odpowiedzi
+ 3
Lenoname , before adding new things, it would be better to fix existing issues. when giving an input of: 85 (which is inside the recommended range), the output says: "too cold". after this, the code is running in an infinite loop until it is timed out by the solo server.
17th Feb 2022, 3:53 PM
Lothar
Lothar - avatar
+ 1
Lothar i ran it and it said ”too cold” ”wrong input” and asked me for an input again. It should continue to ask for input as long as its wrong, or maybe u mean something else?Notice the input is in fahrenheit
17th Feb 2022, 4:52 PM
Lenoname