Download Basic Python Syntax Handwritten Notes Pdf


PYTHON HANDWRITTEN NOTES (Chapter 2: Basic Python Syntax):

reload | diplomawale.in
Basic Syntax Python

Python provides us the feature to execute the Python statements one by one at the interactive prompt. It is preferable in the case where we are concerned about the output of each line of our Python program.

Python Syntax:

The Python syntax defines a set of rules that are used to create a Python Program. The Python Programming Language Syntax has many similarities to Perl, C, and Java Programming Languages. However, there are some definite differences between the languages.

Way To Write Python Syntax:

There are two ways to write and run Python Syntax.
1. Interactive mode: 
 In this mode, you write and execute the program without saving the file manually.
2. Script mode: In this mode, first of all, create a file (.py file extension), save it, and then execute it.

Print Statement:

>>> print("Basic Syntax of Python")

>>> print ("Hello, World!")


PYTHON COMMENTS:

PYTHON comments are used to make a line to understand the user who can see the code.
Comments are used to write a line that will never run by a Python interpreter. the line called Python COMMENTS.


Python String:

A string in Python is a sequence of characters enclosed within single quotes (' ') or double quotes (" "). It is an ordered collection of characters that can include letters, digits, symbols, and whitespace. Strings are used to represent textual data and can be manipulated using various string methods and operations provided by the Python programming language.

Python Operators:

An operator is nothing it's a symbol that's used for some operation in code. operator being performed an operation between two operands. Operators have many types but here we discuss some operators that are used in Python programming language.

Python Data Types:

Every value has a datatype, and variables can hold values. Python is a powerfully composed language; consequently, we don't have to characterize the sort of variable while announcing it. The interpreter binds the value implicitly to its type.

TO DOWNLOAD HANDWRITTEN FULL NOTES OF Python Chap 2: CLICK HERE

Post a Comment

3 Comments