Skip to content

Commit 07d0b96

Browse files
authored
Add files via upload
1 parent adae98c commit 07d0b96

30 files changed

+159
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
prices = {"price1": 9.99, "price2": 13.48 "price3": 10.99, "price4": 15.01}
2+
price_found = False
3+
for key value in prices.items():
4+
if 10 <= value <= 14.99:
5+
print(key + ":", value)
6+
price_found = True
7+
if not price_found:
8+
print("There are no prices between $10 and $14.99")
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
prices = {"price1": 9.99, "price2": 13.48, "price3": 10.99, "price4": 15.01}
2+
price_found = False
3+
for key, value in prices.items():
4+
if 10 <= value <= 14.99:
5+
print(key + ":", value)
6+
price_found = True
7+
if not price_found:
8+
print("There are no prices between $10 and $14.99")
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
response1 = requests.get(url)
2+
2response = requests.post(url)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
response1 = requests.get(url)
2+
response2 = requests.post(url)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
prices = (16.99, 13.68, 24.98, 14.99)
2+
3+
4+
def print_price():
5+
for price in prices:
6+
if price < 15:
7+
print(price)
8+
9+
10+
print_price()
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
prices = (16.99, 13.68, 24.98, 14.99)
2+
3+
4+
def print_price():
5+
for price in prices:
6+
if price < 15:
7+
print(price)
8+
9+
10+
print_price()
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
price = 10.98
2+
type(price) = float
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
price = 10.98
2+
print(type(price))
3+
4+
# or
5+
6+
price = 10.98
7+
is_float = type(price) == float
8+
print(is_float)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"price" = 10.98
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
price = 10.98

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy