This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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?") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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'> |