Mohd Mohtashim has Published 251 Articles

String Data Type in Python

Mohd Mohtashim

Mohd Mohtashim

Updated on 24-Jan-2020 11:29:57

3K+ Views

Strings in Python are identified as a contiguous set of characters represented in the quotation marks. Python allows for either pairs of single or double quotes. Subsets of strings can be taken using the slice operator ([ ] and [:] ) with indexes starting at 0 in the beginning of ... Read More

Number Data Type in Python

Mohd Mohtashim

Mohd Mohtashim

Updated on 24-Jan-2020 11:29:29

396 Views

Number data types store numeric values. Number objects are created when you assign a value to them. For example −var1 = 1var2 = 10You can also delete the reference to a number object by using the del statement. The syntax of the del statement is −del var1[, var2[, var3[...., varN]]]]You ... Read More

Multiple Assignments to Single Value in Python

Mohd Mohtashim

Mohd Mohtashim

Updated on 24-Jan-2020 11:25:29

530 Views

Python allows you to assign a single value to several variables simultaneously. For example −a = b = c = 1Here, an integer object is created with the value 1, and all three variables are assigned to the same memory location. You can also assign multiple objects to multiple variables. ... Read More

Quotation in Python

Mohd Mohtashim

Mohd Mohtashim

Updated on 24-Jan-2020 11:20:02

4K+ Views

Python accepts single ('), double (") and triple (''' or """) quotes to denote string literals, as long as the same type of quote starts and ends the string.The triple quotes are used to span the string across multiple lines. For example, all the following are legal −word = 'word' ... Read More

Lines and Indentation in Python

Mohd Mohtashim

Mohd Mohtashim

Updated on 24-Jan-2020 11:18:54

1K+ Views

Python provides no braces to indicate blocks of code for class and function definitions or flow control. Blocks of code are denoted by line indentation, which is rigidly enforced.The number of spaces in the indentation is variable, but all statements within the block must be indented the same amount. For ... Read More

What are Python Identifiers?

Mohd Mohtashim

Mohd Mohtashim

Updated on 24-Jan-2020 11:10:50

5K+ Views

A Python identifier is a name used to identify a variable, function, class, module or other object. An identifier starts with a letter A to Z or a to z or an underscore (_) followed by zero or more letters, underscores and digits (0 to 9).Python does not allow punctuation ... Read More

Python Environment Variables

Mohd Mohtashim

Mohd Mohtashim

Updated on 24-Jan-2020 11:07:59

716 Views

Here are important environment variables, which can be recognized by Python −Sr.No.Variable & Description1PYTHONPATHIt has a role similar to PATH. This variable tells the Python interpreter where to locate the module files imported into a program. It should include the Python source library directory and the directories containing Python source ... Read More

Installing Python on Mac OS

Mohd Mohtashim

Mohd Mohtashim

Updated on 24-Jan-2020 11:06:37

451 Views

Python distribution is available for a wide variety of platforms. You need to download only the binary code applicable for your platform and install Python.If the binary code for your platform is not available, you need a C compiler to compile the source code manually. Compiling the source code offers ... Read More

Installing Python on Linux

Mohd Mohtashim

Mohd Mohtashim

Updated on 24-Jan-2020 11:01:47

440 Views

Python distribution is available for a wide variety of platforms. You need to download only the binary code applicable for your platform and install Python.If the binary code for your platform is not available, you need a C compiler to compile the source code manually. Compiling the source code offers ... Read More

Why You Should Learn Python Programming?

Mohd Mohtashim

Mohd Mohtashim

Updated on 24-Jan-2020 10:58:56

177 Views

Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed to be highly readable. It uses English keywords frequently where as other languages use punctuation, and it has fewer syntactical constructions than other languages.Python is a MUST for students and working professionals to become a great Software ... Read More

Advertisements