Exercise 1_Assignment (1)
Exercise 1_Assignment (1)
# Variable declarations
first_name = "Dana"
last_name = "Scott"
full_name = first_name + " " + last_name
country = "USA"
city = "New York"
age = 25
year = 2024
is_married = False
is_true = True
is_light_on = True
#keywords in python
help('keywords')
num_one = 5
num_two = 4
print("Total:", total)
print("Difference:", diff)
print("Product:", product)
print("Division:", division)
print("Remainder:", remainder)
print("Exponentiation:", exp)
print("Floor Division:", floor_division)
# Taking user input for first name, last name, country, and age
user_first_name = input("Enter your first name: ")
user_last_name = input("Enter your last name: ")
user_country = input("Enter your country: ")
user_age = input("Enter your age: ")
<class 'str'>
<class 'str'>
<class 'str'>
<class 'str'>
<class 'str'>
<class 'int'>
<class 'int'>
<class 'bool'>
<class 'bool'>
<class 'bool'>
<class 'int'> <class 'int'> <class 'int'>
Here is a list of the Python keywords. Enter any keyword to get more help.
False
Total: 9
Difference: 1
Product: 20
Division: 1.25
Remainder: 4
Exponentiation: 625
Floor Division: 1
Area of circle: 2827.431
Circumference of circle: 188.4954
Enter the radius of the circle: 4
Area of circle with user input: 50.26544
Enter your first name: Anu
Enter your last name: Victor
Enter your country: Nigeria
Enter your age: 50
User details: Anu Victor, Nigeria, 50 years old.