???????? ?????????????? ?????????????? 5
???????????? ????????????

???????? ?????????????? ?????????????? 5

?????????? ????????????????:

Python is formally an interpreted language. Commands are executed through a piece of software known as the Python interpreter. Python’s syntax relies heavily on the use of whitespace. Individual statements are typically concluded with a newline character, although a command can extend to another line, either with a concluding backslash character (\), or if an opening delimiter has not yet been closed, such as the { character in defining value map. Comments are annotations provided for human readers, yet ignored by the Python interpreter. Identifiers in Python are case-sensitive.

?????????????? ???? ????????????:

Python is an object-oriented language and classes form the basis for all data types. In this section, we describe key aspects of Python’s object model, and we intro-duce Python’s built-in classes, such as the int class for integers, the float class for floating-point values, and the str class for character strings.

A listing of the reserved words in Python. These names cannot be used:

1.) None 2.) assert 3.) def 4.) except 5.) global 6.) is 7.) or 8.) try 9.) True 10.) break 11.) del 12.) finally 13.) if 14.) lambda 15.) pass 16.) while 17.) False 18.) as 19.) continue 20.) else 21.) from 22.) in 23.) not 24.) return 25.) yield 26.) and 27.) class 28.) elif 29.) for 30.) import 31.) nonlocal 32.) raise 33.) with

The process of creating a new instance of a class is known as instantiation. In general, the syntax for instantiating an object is to invoke the constructor of a class. A class is immutable if each object of that class has a fixed value upon instantiation that cannot subsequently be changed.

Commonly used built-in classes for Python:

1.) bool : Boolean value

2.) int : integer (arbitrary magnitude)

3.) float : floating-point number

4.) list : mutable sequence of objects

5.) tuple : immutable sequence of objects

6.) str : character string

7.) set : unordered set of distinct objects

8.) frozenset : immutable form of set class

9.) dict associative mapping (aka dictionary)

????????????????????, ?????????????????? & ????????????????????:

Existing values can be combined into larger syntactic expressions using a variety of special symbols and keywords known as operators. Compound expressions such as a+b c, which rely on the evaluation of two or more operations.

?????????? ???? ??????????????????:

  1. Logical Operators
  2. Equality Operators
  3. Comparison Operators
  4. Arithmetic Operators
  5. Bitwise Operators
  6. Sequence Operators
  7. Operators for Sets and Dictionaries
  8. Extended Assignment Operators

?????????????? ????????:

Python relies on the indentation level to designate the extent of that block of code, or any nested blocks of code within.

  • Conditionals:

if first_condition:

first_body

elif second_condition:

second_body

elif third_condition:

third_body

else:

fourth_body

  • Loops:

While Loop

Do While Loop

For Loop

?????????????????????? ?????????? ?????????? ????????????:

? While many people assume the name Python Programming comes from something related to the Python snake, it actually comes from the TV comedy series ‘Monty Python’s Flying Circus.’ This series broadcast on the BBC channel in the United Kingdom in the 1970s and was a favorite of Guido Van Rossum’s. Because it was short, cryptic, and included the name of his favorite TV comedy show, he chose the name ‘Python.’

? Believe it or not, a man named Tim Peters composed a poem called ‘The Zen of Python’ about Python programming. Simply type ‘import this’ into an interpreter to read this poetry.It’s a fascinating and entertaining poetry that you should read for yourself.

? Doesn’t this one sound funny? Believe it or not, Python surpassed French as the most popular primary school language in 2015. Statistics show that 60% parents would prefer their children to learn Python than French. This shows that the importance of Python programming was acknowledged by a vast number of people. According to the same figures, 75 % of children in primary school would rather learn how to manage a robot than learn French.

? Python is a high-level, interpreted language that does not require a compiler, unlike other programming languages such as Java and C++.Python code is stored in a?.pyc file, which serves as the Python engine and eliminates the need for a compiler.

Quiz Time

?????????? ?????????????? (Check Your Skills):

1.) Who developed Python Programming Language?

a) Wick van Rossum

b) Rasmus Lerdorf

c) Guido van Rossum

d) Niene Stom

2.) Which type of Programming does Python support?

a) object-oriented programming

b) structured programming

c) functional programming

d) all of the mentioned

3.) Is Python case sensitive when dealing with identifiers?

a) no

b) yes

c) machine dependent

d) none of the mentioned

4.) Which of the following is the correct extension of the Python file?

a) .python

b) .pl

c) .py

d) .p

5.) Is Python code compiled or interpreted?

a) Python code is both compiled and interpreted

b) Python code is neither compiled nor interpreted

c) Python code is only compiled

d) Python code is only interpreted

????????: The Answers Of These Questions Will Be Published In Next Week Magazine.

?????????????? ( ???????? ?????????????? ???????????????? ?????????????? 3):

  1. D
  2. C
  3. B
  4. D
  5. B
  6. C
  7. A
  8. D
  9. A
  10. D

For More Query & Suggestions Contact:

Shivaam Jaiswal

Student Placement Coordinator ? Data Analytics ? Data Structure and Algorithms ? C, C++ & Python Programming ? SQL ? Tableau ? AWS ? Cloud Computing ? Graphic Designer ? LinkedIn Creator ? Brand Collaboration

www.dhirubhai.net/in/shivamjaiswal99

Dipesh Singla

?? Actively Seeking Full-Time Role | Business, Finance, Consulting, Entrepreneurship, VC, IB & PE | Climate Policy, Sustainable Growth & Innovation Advocate | Community Building, Impact, & Social Equity

2 年

Nice!

Shivaam Jaiswal

Chandigarh University ? Microsoft Certified AI-102 ? GenAI ? Machine Learning ? Personal Development ? Ex- Business Analyst ? Graphic Designer

2 年
Shivaam Jaiswal

Chandigarh University ? Microsoft Certified AI-102 ? GenAI ? Machine Learning ? Personal Development ? Ex- Business Analyst ? Graphic Designer

2 年

要查看或添加评论,请登录

Shivaam Jaiswal的更多文章

  • DOES DATA SCIENCE HAVE A FUTURE?

    DOES DATA SCIENCE HAVE A FUTURE?

    True dilemma or alarmist discourse? Is data science dying? Is the data science job oversaturated? Is it too late to get…

    5 条评论
  • ???????? ?????????????? ???????????????? ?????????????? 3

    ???????? ?????????????? ???????????????? ?????????????? 3

    ?????????? ????????????????: Database: A database is an organized collection of structured information, or data…

    5 条评论
  • FIRST DATA SCIENTIST

    FIRST DATA SCIENTIST

    Astronomer Tobias Mayer, born 1723, was the first data scientist John Rauser, a data scientist at Amazon.com, explained…

    7 条评论
  • Origin Of Data Science...

    Origin Of Data Science...

    Idea Towards Data Science!! In 1962, John Tukey described a field he called "data analysis", which resembles modern…

    4 条评论
  • What Are The Benefits of Data Visualization?

    What Are The Benefits of Data Visualization?

    Data visualization positively affects an organization’s decision-making process with interactive visual representations…

    5 条评论
  • 5 C Programming Tips You Must Learn to Get Started

    5 C Programming Tips You Must Learn to Get Started

    C programming language has a tough reputation. But if you get to grips with it, you can program anything, as these tips…

    2 条评论
  • Why You Should Learn Data Analytics?

    Why You Should Learn Data Analytics?

    Operations and business decision making of all kinds depend heavily on understanding data. Professionals in the…

    1 条评论
  • What is Python? The popular, scalable programming language, explained

    What is Python? The popular, scalable programming language, explained

    Python is a popular coding language for software and web developers. Python is a programming language known for its…

    3 条评论
  • TOP SKILLS REQUIRED TO BE A DATA SCIENTIST

    TOP SKILLS REQUIRED TO BE A DATA SCIENTIST

    What’s a Data Scientist? A Data Scientist is responsible for compiling and analyzing large data sets — both structured…

    2 条评论
  • DATA ANALYST

    DATA ANALYST

    INTRODUCTION: A data analyst is someone who scrutinises information using data analysis tools. The meaningful results…

    2 条评论

社区洞察

其他会员也浏览了