Python - Programming Language
This course covers the basics of programming in Python. Work your way through the videos/articles and I'll teach you everything you need to know to start your programming journey!

Variables

Lesson 5
Author : GOUP
Last Updated : September, 2020


print("There once was a man named " + character_name) print("He was " + character_age + " years old") print("He really liked the name " + character_name) print("But didn't like being " + character_age)

You can also print variables using a ','

print("My variable is", character_name)

print("There once was a man named " + character_name) print("He was " + character_age + " years old")

character_age = "80"

print("He really liked the name " + character_name) print("But didn't like being " + character_age)

Names are case-sensitive and may begin with: letters, $, _ After, may include letters, numbers, $, _ Convention says Start with a lowercase word, then additional words are separated by underscores ex. my_first_variable