Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Bouns_lab_01.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

congratulation_letter:str = "We are pleased to offer you a postision as a Full-Stack Lead. To find the postision details and the location please find the attachment"
one_word_from_Congletter:str = "postision"


print(len(congratulation_letter))
print(congratulation_letter[0])
print(congratulation_letter.count("postision"))
print(congratulation_letter.upper())
print(congratulation_letter.lower())
print(congratulation_letter.replace("Lead", "Devoloper"))
print(congratulation_letter[-1])





'''
I used W3school to help me finidng the len() and replce() functions, I asked Gemini to only explain question one,
and I hardly emphasized that it should'nt show me any code.
'''
20 changes: 20 additions & 0 deletions first_py_lab.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

price:float = 5.99
quantity:int = 4
tax_rate:float =0.075


subtotal= price*quantity
tax = subtotal*tax_rate
total = subtotal+tax


print("Product Price:",price)
print("Quantity:",quantity)
print("Tax rate:",tax_rate)

print(f"Juice price: ${subtotal}")
print("Tax:",tax)
print("Total:",total)