Skip to content

🚞 An amazing and beginner πŸš‚ friendly repository 🚒 designed to teach πŸ›³ you Python from the πŸš€ ground up Whether 🚁 you're starting your ✈ coding journey refreshing β›± core concepts this 🚟 repo is your perfect learning πŸͺ companion variables data types conditionals loops functions OOP and modules coding exercises mini-projects and real-worldβ›ͺ

License

Notifications You must be signed in to change notification settings

Hazrat-Ali9/Python-Fundamentals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ₯Ά Hazrat Ali

🀑 Programmer || Software Engineering

1.🦁 Defining a Variable in Python

In Python, a variable is a symbolic name that refers to a memory location where a value is stored. Unlike some other programming languages, Python does not require explicit variable declaration. A variable is created the moment a value is assigned to it

first_name = 'Hazrat'
last_name = 'Ali'
country = 'Germany'
city = 'Berlin'
age = 23
full_name = first_name + ' ' +  last_name
print(full_name)

print('I am ' + full_name + '.' + 'I am ' + str(age) + 'years old. ' + 'I live in ' + country)
 print(f'I am  {full_name}. I am {age} years old. I live in {city}, {country}')

a = 4
b = 3

print(f'The sum of {a} and {b} is {a + b}')
print(f'The difference of {a} and {b} is {a - b}')
print(f'The product of {a} and {b} is {a * b}')
print(f'The division of {a} and {b} is {a / b}')

About

🚞 An amazing and beginner πŸš‚ friendly repository 🚒 designed to teach πŸ›³ you Python from the πŸš€ ground up Whether 🚁 you're starting your ✈ coding journey refreshing β›± core concepts this 🚟 repo is your perfect learning πŸͺ companion variables data types conditionals loops functions OOP and modules coding exercises mini-projects and real-worldβ›ͺ

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages