basic knowledge for PYTHON Programming.
Welcome to the world of Python programming, where innovation meets simplicity. Python is a high-level, versatile programming language known for its readability and ease of use. It's widely used in various domains such as web development, data science, arti...
basic knowledge for PYTHON Programming.
Welcome to the world of Python programming, where innovation meets simplicity. Python is a high-level, versatile programming language known for its readability and ease of use. It's widely used in various domains such as web development, data science, artificial intelligence, automation, and more.
At its core, Python emphasizes code readability and simplicity, making it an ideal choice for both beginners and seasoned developers alike. With its extensive standard library and vast ecosystem of third-party packages, Python empowers developers to build powerful and efficient solutions with minimal effort.
Whether you're a newcomer looking to learn your first programming language or an experienced developer seeking to streamline your workflow, Python has something for everyone. Its clean and intuitive syntax allows you to express complex ideas in fewer lines of code, promoting faster development and easier maintenance.
In this journey through Python programming, you'll discover its myriad capabilities, from basic syntax and data structures to advanced topics like object-oriented programming, functional programming, and concurrent execution. So buckle up and get ready to unleash your creativity with Python!"
Size: 2.74 MB
Language: en
Added: May 01, 2024
Slides: 25 pages
Slide Content
INTRODUCTION TO PYTHON PROGRAMMING Dr.M.Amsaprabhaa Assistant Professor Department of CSE Shiv Nadar University Chennai
What is Python? Python is a very popular general-purpose interpreted, interactive, object-oriented and high-level programming language. Python is dynamically-typed and garbage-collected programming language. It was created by Guido van Rossum during 1985- 1990. Guido van Rossum
Compiling and Interpreting
Why should we use Python? Python syntax allows programmers to express concepts in fewer lines of code. Python is commonly used for developing websites and software, task automation, data analysis, and data visualization. Since it's relatively easy to learn, Python has been adopted by many non-programmers such as accountants and scientists, for a variety of everyday tasks, like organizing finances.
Top reasons to learn python Data science Scientific and mathematical computing Web development Finance and trading System automation and administration Computer graphics Basic game development Security and penetration testing
Top companies using python
D ynamically-typed language means the type (for example- int , double, long, etc.) for a variable is decided at run time not in advance because of this feature we don’t need to specify the type of variable. A garbage collection in Python manages the memory automatically. In simpler terms, the process of automatic deletion of unwanted or unused objects to free the memory is called garbage collection in Python.
Python Keywords
Programming Basics
An Integrated Development Environment ( IDE ) is software for building applications that combines common developer tools into a single GUI.
Simple program print("Welcome to the World of Python!") text = "Welcome to the World of Python!" print(text) (Or)
input() function is used to take input from the user.
Comments:
Immutable is the when no change is possible over time. In Python, if the value of an object cannot be changed over time, then it is known as immutable. Once created, the value of these objects is permanent . A tuple is a non-homogeneous data structure that can hold a single row as well as several rows and columns. Dictionary is a non-homogeneous data structure that contains key-value pairs. Tuples are represented by brackets (). Dictionaries are represented by curly brackets {}.
OUTPUT
Selection Selection in Python is made using the two keywords ‘if’ and ‘ elif ’( elseif ) and else
Functions Python used the keyword ‘ def ’ to define a function. Syntax: def function-name(arguments): # function body
As the name suggests it calls repeating things again and again. Iteration/Looping
Module ‘import’ keyword is used to import a particular module into the python code.
print("Create a Password: ") cp = input() print("\ nEnter Two Numbers to Add: ") numOne = int (input()) numTwo = int (input()) print("\ nEnter Password to Display the Result: ") ep = input() if cp == ep: sum = numOne + numTwo print("\ nResult = ", sum) else: print("\ nWrong Password!") Simple program