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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[![Review Assignment Due Date](https://classroom.github.com/assets/deadline-readme-button-22041afd0340ce965d47ae6ef1cefeee28c7c493a6346c4f15d667ab976d596c.svg)](https://classroom.github.com/a/EgsWxGsu)
# Assignment 1


Expand Down
26 changes: 26 additions & 0 deletions misoon.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
saxeli = "Misoon"
first_name = "John"
last_name = "Doe"
full_name = first_name + " " + last_name
print(full_name)
print("Data type of full_name:", type(full_name).__name__)

age = 20
print(f"You are {age} years old")
print("Data type of age:", type(age).__name__)


temperature = 20.3
print(f"The temperature is {temperature} degrees")
print("Data type of temperature:", type(temperature).__name__)


is_hot = temperature > 30
print(is_hot)
print("Data type of is_hot:", type(is_hot).__name__)

print("\nExplanation of Data Types:")
print("- int (Integer): Whole numbers without decimals. Example: 5, -10, 0")
print("- float (Floating-Point): Numbers with decimals. Example: 3.14, -0.001, 20.3")
print("- str (String): Sequence of characters (text). Example: 'Hello', 'John Doe', '123'")
print("- bool (Boolean): Logical values, either True or False. Example: True, False")
Loading