0% found this document useful (0 votes)
4 views1 page

Python Basics: Variables and Types

This Python code defines variables for a person's first name, last name, and full name concatenated together. It prints their full name, increments their age by 1, and prints the age and type. The code also defines a height variable, prints the height and type. Finally, it defines a variable for whether the person is human and prints the value and type.

Uploaded by

Vadim Blg
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Python Basics: Variables and Types

This Python code defines variables for a person's first name, last name, and full name concatenated together. It prints their full name, increments their age by 1, and prints the age and type. The code also defines a height variable, prints the height and type. Finally, it defines a variable for whether the person is human and prints the value and type.

Uploaded by

Vadim Blg
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd

#first_name = "Vadim"

#last_name = "Bulgari"
#full_name = first_name +" "+ last_name
#print("Hello "+full_name)
#age = 14
#age += 1
#print("Your age is:"+str (age))
#print(type(age))

#height = 250.5
#print("Your height is: "+str(height)+"cm")
#print(type(height))

human = True
print("Are you a human: "+str(human))
#print(type(human))

You might also like