Skip to content

Joseph-T-Gordon

A complete log of all recent projects and skills

Menu
  • About me
  • Posts/Projects
  • Resume/Certifications
Menu

Post #34 (Python Programming) – Python Variables

Posted on March 15, 2023June 26, 2023 by admin

This post will be rather short as there’s not much to say important things to note are that a variable is something you set and can later use in your code. Your variables cannot start with a number, contain spaces, or be a currently existing function such as print. You can also assign variables new values and use them in expressions

Code:

var = 1

print(var)

var = var + 1

print(var)

print(var**2)

Result:

1

2

4

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

© 2025 Joseph-T-Gordon | Powered by Minimalist Blog WordPress Theme