Loading repository dataβ¦
Loading repository dataβ¦
Hazrat-Ali9 / repository
π 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βͺ
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
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}')