Beginner Python Programming with examples (Part 2)(2022)

Python is a very popular programming language used in web development, Machine Learning programming application,along with all cutting edge technology in Software Industry and it’s very easy to learn for Beginner Python Programming

Is Python easy to learn for beginners?

Python is a high-level, interactive and object-oriented, interpreted, scripting language. Python is designed to be highly readable and beginner-friendly. It uses English keywords frequently where as other languages use punctuation, fewer syntactical constructions than other languages.

What is Python Tokens?

A tokens is the Smallest meaningful component or unit in a python program.

  • Keywords
  • Identifiers
  • Literals
  • Operators

What is Python Keywords?

Python keywords are special reserved words that have specific meanings and purposes that can’t be used for anything but those specific purposes.
Example:-

Beginner Python

What is Python Identifiers?

A Python identifier is a name used to identify a variable, class, function, module or other object.
Identifiers Rules:-

  • No special character expect_(underscore).
  • Identifiers are case Sensitive.
  • First Latter cannot be a digit.

** Python Identifiers are case Sensitive. Here have two Variable one is “student” there have “s” lowercase letter and second “S” uppercase letter. so, as python program that are two difference types of variable.

What is python Literals?

Literals are the raw data that are assigned to variables or constants while programming. we have different types of literals such as string literals, numeric literals, boolean literals in python program.

Example:-
student = 3.15 ( I’m a constant. I don’t change )

What is Python Strings ?

In a python program strings are sequence of characters enclosed within single quotes (‘ ‘ ), double quotes (” “) or triple quotes (“‘ “‘).
Example:-
* ‘Hello World’
* “This is Jahn”
* “‘ Hello world this is Jahn”‘

Extracting individual Characters:

string1
string1

** This is a Extract command, if you will use “0” that will count from starting and if you will use “-1” that will count from last of the line. you can also use ” : “ for example student[2:6]

What is string Functions?

Finding length of string:
stringfunctions.PNG
Converting string to lower case:
stringfunctions3.PNG
Converting string to upper case:
stringfunctions2.PNG
Replacing a sub string:
replace
Number of occurrences of sub string:
count
Finding the index of sub string:
count functions
Splitting a string

Beginner Python Programming with examples (Part 1)

Queries Solved:

  • What is a Variable in Python?
  • What are the data types in Python?
  • What are the different types of data in Python?
  • What are operators in Python?
  • What is Arithmetic Operators?
  • What is Logical Operators?
  • What is Relation Operator ?
  • Beginner Python Practical Example:-



5/5 - (1 vote)
Sharing Is Caring:

2 thoughts on “Beginner Python Programming with examples (Part 2)(2022)”

  1. I’m extremely impressed with your writing skills and also with the layout on your weblog. Is this a paid theme or did you customize it yourself? Anyway keep up the nice quality writing, it’s rare to see a nice blog like this one today..

    Reply

Leave a Comment