Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🚞 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

Hazrat-Ali9/Python-Fundamentals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

40 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

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /