Note: When clicking the Play Button -> The Python environment loads on the first run; and it may take 10-15 seconds, then executes instantly, afterwards! Also -> Please be aware that on small screens like phones, lengthy strings in Python output may overflow the page because of client-side rendering. To ensure proper display on mobile devices with small screens, it's advisable to use shorter strings for your variables; or flipping it hamburger-style.
Or, is my grammar not perfect — LOL! In Python and many other programming languages a person will achieve what is called defining a variable, assigning a variable, etc. . . It is important to note that tech-terminology for programming can include complicated talk, and ~ at-times a mix with slang words. Why is this first excercise different? Issss - - We will break away from the logic and grammar police for a moment. Practice a little on thinking outside of the box. "Open our third-eye!" As we must put something in the evelope to send it, or the open'r will have a empty envelope. In the example below where it says "Your Name" change it to yours keeping it in quotes. And, at the top of the code editor on the right side click the play button. For example my name is Crissy! So I would put my_first_variable = "Crissy"
Now we will practice a moment on putting 2 variables together. In Python we just add them together using the + symbol. However, you will notice that I put a space after my name: my_first_variable = "Crissy "
~ This is really a common sense factor, but it is little things like this that can cause an error when programming. And once you get 1000 lines of code deep it may be hard to find.
This was a moment of. . . wished i would of known from the start! It is inevitable that when working with Python or any other programming languages we find ourselves in a real endless loop +-_-+ of always something new. This is because developers share information and build on top of languages presenting new capabilities, but this one here, not only gives the complex ability of Python; it also brews a new understanding of how the actual interpreter works. Below are a few examples as this is a play section and feel free to skip to the next, but I encourage you to just click play, make a few changes, and see how the actual magic of variable assignment works.
In this last part of this starter variable tutorial we will explore returning <-- information back to a function in Python. Although it is not exactly a variable; functions work with variables through using parameters, which generally come from variables. Defining a function in python is simple. We are just using the keyword 'def'
then whatever you wanna call it. This also shows a demo on how Python will start reading at the top of the file downward - in most case unless doing a complex. . . Lol :) Check out the example below and feel free to play around with it. You can also click the refresh on your browser to refresh to the original code at any time.
Although these tutorials have been designed to eventually be a share-point and like a computer programmers new type of blogging system. And who knows when this will be revisited. Feel free to keep checking back on here by clicking the pages drop-down at the bottom of this page, or visit https://crissymoon.com/projects.html and look under the tutorials section for new updates. Also my contact info is on https://crissymoon.com/about.html and https://xcaliburmoon.net/
If you like what you are seeing buy us a cup of coffee, by clicking the make payment on https://xcaliburmoon.net <- Type coffee-yourname or company, lunch-yourname, etc., for the invoice number.
We were not informed that an update was necessary, leading to a service interruption of approximately two minutes. However, as this platform is not subject to daily in-house testing, should you encounter any issues, please report them immediately at https://xcaliburmoon.net/public_forms/support/ and we will address them promptly.
Posted on: 2025-08-14 | Crissy Deutsch
© 2025-08-14 Crissy/Xcalibur Moon Technologies. All rights reserved.
.
.
.