Question: VERY BASIC PYTHON HELP! So I know a lot about java programming, except in this class i'm taking we are learning python. We have this

VERY BASIC PYTHON HELP!

So I know a lot about java programming, except in this class i'm taking we are learning python. We have this SUPER basic assignment which is to basically create a python function that accepts an integer and adds 40 to it. I know how we would do it in java script, but sort of need help on programming it in Python. This should literally take a minute.

What I have so far...

def chirps_to_ftemp(x):

'''(int) -> None

Print fahrenheit temp estimated based on number of cricket chirps in a 14 second interval (ch14) - add 40. None value is returned.

>>> chirps_to_ftemp(0) The estimated temperature, based on 0 chirps in 14 seconds, is 40 degrees fahrenheit. >>> chirps_to_ftemp(50) The estimated temperature, based on 50 chirps in 14 seconds, is 90 degrees fahrenheit. ''' # replace pass with your code - don't forget to include return

tempF = x + 40

return none

chirps_to_ftemp(50)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!