Here's another program, this one performing an arithmetic operation on a variable and displaying the result. Note that Python also allows you to display the value of a variable (in the command line interpreter only) by stating the variable name without a preceding print() function call. Finally, Python also allows you to simultaneously assign a value to multiple variables - check it out. And that's about it for this introduction to Python. In this article, I've provided a brief history of Python, and explained some of the features which make it so popular among discerning developers. I've also discussed the two methods available to run a Python program, demonstrated the print() function, and offered some insight into the rules governing Python variables. In the next article, I'll be delving deeper into Python's data structures and built-in objects - numbers and - together with a closer look at the various arithmetic and comparison operators. See you then!
blog comments powered by Disqus |