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
| letters = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] | |
| points = [1, 3, 3, 2, 1, 4, 2, 4, 1, 8, 5, 1, 3, 4, 1, 3, 10, 1, 1, 1, 1, 4, 4, 8, 4, 10] | |
| letter_to_points = {key:value for key, value | |
| in zip(letters, points)} | |
| letter_to_points[" "] = 0 | |
| def score_word(word): | |
| point_total = 0 |
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
| daily_sales = \ | |
| """Edith Mcbride ;,;$1.21 ;,; white ;,; | |
| 09/15/17 ,Herbert Tran ;,; $7.29;,; | |
| white&blue;,; 09/15/17 ,Paul Clarke ;,;$12.52 | |
| ;,; white&blue ;,; 09/15/17 ,Lucille Caldwell | |
| ;,; $5.13 ;,; white ;,; 09/15/17, | |
| Eduardo George ;,;$20.39;,; white&yellow | |
| ;,;09/15/17 , Danny Mclaughlin;,;$30.82;,; | |
| purple ;,;09/15/17 ,Stacy Vargas;,; $1.85 ;,; | |
| purple&yellow ;,;09/15/17, Shaun Brock;,; |
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
| # Uncomment this when you reach the "Use the Force" section | |
| train_mass = 22680 | |
| train_acceleration = 10 | |
| train_distance = 100 | |
| bomb_mass = 1 | |
| # Write your code below: | |
| def f_to_c(f_temp): | |
| return (f_temp - 32) * 5/9 |
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
| weight = 4.8 | |
| cost_ground = "" | |
| premium_ground = 125 | |
| cost_drone = "" | |
| #ground shipping | |
| if weight <= 2: | |
| cost_ground = weight * 1.5 + 20 | |
| elif weight <= 6: | |
| cost_ground = weight * 3.0 + 20 | |
| elif weight <= 10: |
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
| mport random | |
| random_number = random.randint(1, 9) | |
| #print(random_number) | |
| name = "Chris" | |
| question ="" | |
| answer = "" | |
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
| print("I have information for the following planets:\n") | |
| print(" 1. Venus 2. Mars 3. Jupiter") | |
| print(" 4. Saturn 5. Uranus 6. Neptune\n") | |
| weight = 185 | |
| planet = 3 | |
| # Write an if statement below: | |
| if planet == 1: |
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
| lovely_loveseat_description = " Lovely Loveseat. Tufted polyester blend on wood. 32 inches high x 40 inches wide x 30 inches deep. Red or white." | |
| lovely_loveseat_price = 254.00 | |
| stylish_settee_description = " Stylish Settee. Faux leather on birch. 29.50 inches high x 54.75 inches wide x 28 inches deep. Black." | |
| stylish_settee_price = 180.50 | |
| luxurious_lamp_description = " Luxurious Lamp. Glass and iron. 36 inches tall. Brown with cream shade." | |
| luxurious_lamp_price = 52.15 | |
| sales_tax = .088 |