Jump to content

Recommended Posts

hello there

Im making a small thing that make the price of your car...

but there is no thing happened the python say there is no error

but I need a result  there is no resulet i def days by what you are writing (I know its simple cause i didnt add any if for check this cause i test my self...)

but the days cant transfer to cost why that happend ?

this is my code

	print "hello there"
print "but the days that you want to but your car there"
days = raw_input()
def rental_car_cost():
    cost = str(days) * 40
    if days >= 7:
        return cost - 50
    elif days >= 3:
        return cost - 20
	

Link to comment
https://metin2.dev/topic/15955-problem-defining-functionpython/
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.