techtipnow_in
techtipnow_in
Contents [hide]
Features of Python
High Level
Free and Open Source
Case Sensitive
Interpreted
Plateform Independent
Rich library of functions
Dynamic
General Purpose
Execution Mode
Interactive mode
Script mode
Interactive Mode
Script Mode
Python Keywords
Identifier
Variables
Data types
Comments
Operators
Arithmetic operator
Relational operator
Assignment operator
Logical operator
Identity operator
Membership operator
Expressions
Example
Evaluation:
Statement
Example:
Syntax:
Input([prompt])
Syntax:
print([message/value])
Example:
Example:
Type Conversion
Explicit conversion
Implicit conversion
Explicit Conversion
Syntax:
(new_data_type) = (expression)
Explicit type conversion function
Example:
x = 12
y=5
print(x/y) #output – 2.4
print(int(x/y)) #output – 2
x = input(“enter a number”)
print(x+2) #output –
produce error “can only concatenate str to str
x = int(input(Enter a number”))
print(x+2) #output –
will display addition of value of x and 2
Implicit conversion
Example:
Strings
Examples:
Negative Index
Is string immutable?
String operations
Concatenation
Repetition
Membership
Slicing
Concatenation
Repetition
Membership
Slicing
Traversing a String
String Functions
List
Examples
Example:
List is Mutable
List operations
Concatenation
Repetition
Membership
Slicing
Concatenation
Example:
Repetition
Membership
Example:
Slicing
Examples:
Traversing a List
Examples:
Nested List
Example:
Tuple
Examples
Example:
Tuple is Immutable
Example:
Tuple operations
Concatenation
Repetition
Membership
Slicing
Concatenation
Example:
Repetition
Membership
Example:
Slicing
Examples:
Traversing a Tuple
Examples:
Nested Tuple
Example:
Tuple Assignment
Dictionary
Creating a Dictionary
Examples
Dictionary is Mutable
Traversing a dictionary
Previous Post
Next Post
Related Posts
SWAGATA BANERJEE
MARCH 21, 2023 AT 1:02 AM
Reply
AARUSHI SINGH
APRIL 19, 2024 AT 12:08 AM
19 April 2024,
Friday,
5:37 A.M. :))
Reply
Leave a Comment
Your email address will not be published.
Required fields are marked *
Type here..
Name*
Email*
Website
Post Comment »
Search...
Categories
Artificial Intelligence
Boolean Algebra
Cloud Computing
Computer Fundamentals
Computer Network
CS Class 11
CS Class 11 MCQ
CS Class 12 MCQ
CS Class 12 Tutorial
CSV Files
Cyber Crime
Cyber Safety
Database Concept
DBMS MCQs
Emerging Trends
Internet
Internet MCQ
IOT
IP Class 11 MCQ
IP Class 11 Tutorial
IP Class 12 MCQ
IP Class 12 Tutorial
IP Practicals
IT 402 Class 10
Java Programming
Matplotlib Pyplot
NCERT Solutions
Operating System
Python DataFrame
Python MCQ
Python Pandas
Python Programs
Python Series
Python Tutorials
RDBMS
Societal Impact
Spreadsheet
SQL MCQ
SQL Practicals
SQL Tutorials
Uncategorized
About
Terms and Conditions
Private Policy
Refund Policy
Contact Us
Sitemap