Rules for variable names names can not start with a number names can not contain spaces, use _ intead names can not contain any of these symbols: :'",<>/?|\!@#%^&*~-+ it's considered best practice (PEP8) that names are lowercase with underscores avoid using Python built-in keywords like list and str avoid using the single characters l (lowercase … Continue reading Variable Assignment
Tag: variables
Numbers and more in Python
In this tutorial, we will learn about numbers in Python and how to use them. We'll learn about the following topics: 1.) Types of Numbers in Python 2.) Basic Arithmetic 3.) Differences between classic division and floor division 4.) Object Assignment in Python Types of numbers Python has various "types" of numbers (numeric literals). We'll … Continue reading Numbers and more in Python
VARIABLES IN PYTHON
Unlike other programming language, Declaring variable in python is very easy, In python variable is created at the moment you assign a value to it. And variable can be of any data type. Example: Variable can be of any data type. Rules for Variable Names A variable can have a short name (like x and … Continue reading VARIABLES IN PYTHON

