0 Comments
0 Shares
0 Reviews
Search
Discover new people, create new connections and make new friends
-
Please log in to like, share and comment!
-
01 What is Python and What it can do?What is Python? Python is a programming language used to design Software applictions. It was created by Guido van Rossum, and released in 1991. What can Python do? Python can be used to create web applications. Python can be used alongside software to create workflows. Python can connect to database systems. It can also read and modify files. Python can be used to handle big data and perform...0 Comments 0 Shares 0 Reviews
-
02 How to Install Python?Installation Procedure: Python comes already installed with Mac OSX and most GNU/Linux systems, but it does not come with Windows. It is free software, however, and installation on Windows is quick and easy. Click this (http://python.org/download/) link or Copy and Paste in you browser's address bar. Select the latest Windows x86 MSI Installer (python-3.10.7.msi at the time of this writing)...0 Comments 0 Shares 0 Reviews
-
03 How to check Python Version installed on you PC?To check if you have python installed on a Windows PC, search in the start bar for Python or run the following on the Command Line (cmd.exe): C:\Users\Your Name>python --version To check if you have python installed on a Linux or Mac, then on linux open the command line or on Mac open the Terminal and type: python --version Or, if the "python" command did not work, you can try...0 Comments 0 Shares 0 Reviews
-
04 Python uses Identation to indicate the code blockThe spaces at the beginning of a code line is called as Identation. In other Programming languages Identation or Spaces in the beginning of the code if just for readability but In Python it makes difference. The indentation in Python is very important. Python uses indentation to indicate a block of code. For Example: if 5 > 2: print("Five is greater than two!") In above example when...0 Comments 0 Shares 0 Reviews
-
05 How to write comments in Python?Like other programming languages Python also has commenting capability for the purpose of in-code documentation. Single Line Comment: Comments start with a #, and Python will render the rest of the line as a comment: Example: #This is a comment. print("Hello, World!") Or print("Hello, World!") #This is a comment Multy-Line Comment: In-fact Python does not have any syntax for multi-line...0 Comments 0 Shares 0 Reviews
-
06 Introduction to Python VariablesBasically, Python has no command to Declare a Variable. A Variable is created as soon as you assign any value to it. Whether it is numeric, String, Float, Boolean or any kind. Variables do not need to be declared with any particular type, and can even change type after they have been set. *** Variable names in Python are case-sensitive. A variable can have a short name (like x and y) or a more...0 Comments 0 Shares 0 Reviews
-
Assigning Multiple values to Variables/Variable in PythonPython allows to assign multiple values to multiple variables in a single line as shown in Example below: x, y, z = "Bus", "Car", "Jeep"print(x)print(y)print(z) Python also allows to assign same value to multiple variables in a single line as shown in example below: x = y = z = "Vehicles"print(x)print(y)print(z)0 Comments 0 Shares 0 Reviews
-
Data types used in PythonBelow are the examples, how you can set different kind of Data types in Python. Example Data Type x = "Hello World" str x = 20 int x = 20.5 float x = 1j complex x = ["apple", "banana", "cherry"] list x = ("apple", "banana", "cherry") tuple x = range(6) range x = {"name" : "John", "age" : 36} dict x = {"apple", "banana", "cherry"} set x = frozenset({"apple", "banana",...0 Comments 0 Shares 0 Reviews
-
Operators in PythonPython Arithmetic Operators Operator Name Example + Addition x + y - Subtraction x - y * Multiplication x * y / Division x / y % Modulus x % y ** Exponentiation x ** y // Floor division x // y Python Assignment Operators Operator Example Same As = x = 5 x = 5 += x += 5 x = x + 5 -= x -= 5 x = x - 5 *= x *= 5 x = x * 5 /= x /= 5 x = x / 5 %= x %= 5 x = x % 5...0 Comments 0 Shares 0 Reviews
More Results
kishan 2