Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1011 Bytes

File metadata and controls

40 lines (29 loc) · 1011 Bytes

Answer for basic questions for core python

Print your name using python.
print("My name is Your_Name")

See explanation or go back

Print your name using variable in python.
name = "Your_Name"
print("My name is", name)

# another way
print("My name is" + name)

# another way
print(f"My name is {name}")

See explanation or go back

Print your name and age using python.

print("My name is Your_Name and I am 25 years old.")

See explanation or go back

Print your name and age using variable in python.
name = "Your_Name"
age = 25
print(name)

See explanation or go back