Skip to content

Instantly share code, notes, and snippets.

View CodingSurfer's full-sized avatar

Tiffany Wilson CodingSurfer

  • Los Angeles county
View GitHub Profile
def carRentalTotal(days):
daily_rate=40.00
discount=0.00
if (days >=3) and (days < 7):
discount = 20.00
elif (days >= 7):
discount = 50.00
return days * daily_rate - discount
rental_days = input("How many days do you need to rent a car?")
@CodingSurfer
CodingSurfer / gist:8f7d2cf2ac62f5edabe0e97c02254939
Created June 7, 2016 23:05
Euler Project - sum numbers divisible by 3 or 5
numbersList = range(1,1001)
value = 0
value = sum([i for i in numbersList if (i % 3 == 0) or (i % 5 == 0)])
print value
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?xml version='1.0' encoding='utf-8' ?>
<!-- build 9300.16.0511.2203 -->
<workbook source-build='9.3.1 (9300.16.0511.2203)' source-platform='mac' version='9.3' xmlns:user='http://www.tableausoftware.com/xml/user'>
<preferences>
<preference name='ui.encoding.shelf.height' value='24' />
<preference name='ui.shelf.height' value='26' />
</preferences>
<datasources>
<datasource caption='sat_scores' inline='true' name='textscan.0dvvb941pxojhb1fj6bb519msmq6' version='9.3'>