Hive-blogger avatar

Variables Assignment In Python Programming Language (2nd part)

alrashel

Published: 12 Apr 2020 › Updated: 12 Apr 2020Variables Assignment In Python Programming Language (2nd part)

Variables Assignment In Python Programming Language (2nd part)

Here I published the second part of the consecutive series about Python Programming language to learn for all.

Python Programming Language (1st part)

code-1084923_1280.png
Image source

Variables and Assainment:

The main task of a computer program is to store values and perform specific operations on those values. To store value we assign variables. In Python, the variable is created when we assign a value to it. So we can say variables are memory locations. Python Interpreter allocates memory locations as variables names based on the data type.

variables.JPG

Python variables names are case sensitive. For example - age, Age are two different variables. Variable names can’t start with a digit. It can contain letters, underscore and digits. When we assign a variable we use '=' sign, remember this sign(=) doesn't mean mathematically equal.

variables2.JPG

Real-life Scenario

Problem :

User's information collection and show the values

Task :

Write down the procedure step by step (Pseudocode)

pseudocode1.JPG

Pseudocode to code :

Open your Python IDLE from startmenu on windows.

idle.png

Type on your Python IDLE and try to understand what happens one by one.

userinfo.JPG

I hope you understand the topic today. If I get your support, I will consider myself a good fit.

Next Topic

Python Keywords and Identifiers (3rd part)

Leave Variables Assignment In Python Programming Language (2nd part) to:

Written by

Passionate software developer and interests in Travelling, Blogging, Photography and active lifestyle.

Read more #python posts


Best Posts From Hive-blogger

We have not curated any of alrashel's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Hive-blogger