420 likes | 1.28k Views
** Python Certification Training: https://www.edureka.co/python **<br>This Edureka PPT on 'Introduction To Python' will help you establish a strong hold on all the fundamentals in the Python programming language. Below are the topics covered in this PPT:<br><br>Introduction To Python <br>Keywords And Identifiers <br>Variables And Data Types <br>Operators <br>Loops In Python <br>Functions <br>Classes And Objects <br>OOPS Concepts <br>File Handling <br><br>YouTube Video: https://youtu.be/uYjRzbP5aZs<br><br>Python Tutorial Playlist: https://goo.gl/WsBpKe<br>Blog Series: http://bit.ly/2sqmP4s<br><br>Follow us to never miss an update in the future.<br>YouTube: https://www.youtube.com/user/edurekaIN<br>Instagram: https://www.instagram.com/edureka_learning/<br>Facebook: https://www.facebook.com/edurekaIN/<br>Twitter: https://twitter.com/edurekain<br>LinkedIn: https://www.linkedin.com/company/edureka
E N D
Introduction To Python Keywords & Identifiers Variables & Data Types Operators Loops in Python Functions Classes & Objects OOPs Concepts File Handling www.edureka.co
OBJECT-ORIENTED OPEN-SOURCE INTERPRETED TONS OF LIBRARIES PROCEDURE ORIENTED EASY TO LEARN
Print(‘Hello world’) COMMENTS IN PYTHON # this is a single line comment … this is a multi-line comment The difference is uncanny … C om m ents in python C om m ents in python There are tw o types of com m ents in python 1. Single line com m ent 2. M ulti line com m ent www.edureka.co
K eyw ord and Identifiers K eyw ord and Identifiers K eyw ords in python are special w ords that have a specific m eaning. A nd identifiers are user defined nam es to represent a variable, function, a class or a m odule. www.edureka.co
WHAT IS A VARIABLE? www.edureka.co
TUPLE NUMBERS LIST DATA TYPES IN PYTHON 6 1 2 3 4 5 SET STRING DICTIONARY www.edureka.co
Arithmetic Membership Logical OPERATORS IN PYTHON Operators Assignment Bitwise Comparison www.edureka.co
How Many Types Of Loops? Why Should We Use One? LOOPS IN PYTHON Iterating Over A Sequence? www.edureka.co
Suppose you want to print the numbers from 0-10 0,1,2,3,4,5,6,7,8,9,10 OR Why Should We Use Loops? You want to print the sum of all even numbers until 100. OR You want to print the name of all employees in a sequence until you come across lets say ‘Ravi Mehta’ www.edureka.co
Why FOR Loop? When we are iterating over a sequence. You know the number of times the statements will get executed. www.edureka.co
Why WHILE Loop? When we are executing a set of statements , if the condition holds true. The execution stops as soon as the condition is false. www.edureka.co
02 FUNCTIONS IN PYTHON HOW TO DECLARE A FUNCTION? 01 WHY USE FUNCTIONS? 03 HOW ARE WE GOING TO PASS VALUES IN A FUNCTION? www.edureka.co
I have to write the logic for Factorial again and again Why Use Functions? Instead You can define a function to calculate factorial. And you can call that function every time you need to calculate factorial. www.edureka.co
WHAT IS AN OBJECT? WHAT IS A CLASS? CLASSES & OBJECTS WHY ARE WE USING THEM? www.edureka.co
You can define a class with various methods/functions Why Use Classes? You can access and modify the data stored in methods using the object of the class. A class is basically a definition of an object www.edureka.co
Polymorphism Abstraction Encapsulation Inheritance www.edureka.co
Creating a parent class Base Class Inheriting properties to a derived class or child class Derived Class You can access methods and properties from either classes by creating the objects. www.edureka.co
A B A B C Multiple Inheritance C Multilevel Inheritance www.edureka.co