All in One Offer! | Access Unlimited Courses in any category starting at just $29. Offer Ends in:

Browse Library

  • Business Solutions
  • Become an Instructor
  • 0
    Shopping Cart

    Your Cart is empty. Keep shopping to find a course!

    Browse Courses
Free
6 days left at this price!

This plan includes

  • Limited free courses access
  • Play & Pause Course Videos
  • Video Recorded Lectures
  • Learn on Mobile/PC/Tablet
  • Quizzes and Real Projects
  • Lifetime Course Certificate
  • Email & Chat Support
Get Unlimited Learning Access
$29
6 days left at this price!
30-Day Money-Back Guarantee

This plan includes

  • Access to 11,000+ Courses
  • Ads free experience Courses
  • Play & Pause Course Videos
  • HD Video Recorded Lectures
  • Learn on Mobile/PC/Tablet
  • Quizzes and Real Projects
  • Lifetime Course Certificate
  • Instructor Direct Support
  • Email & Chat Support
  • Cancel Anytime
$29
$29
$29
  • Core Python Programming for Data Science / Machine Learning / Data Analytics
  • Python Variables, Datatypes, List, Tuple, Set, Dictionary, Strings
  • Operators, Indexing, Defining Functions in Python
  • If-Else, For Loop, While Loop in Python
  • Python Functions like Range, Input, Map, Filter, Enumerate, Split, Zip & Unzip, Lambda, Def
  • Real Time Coding in Jupyter Notebook
  • You will get the source code of each video lecture

In this course, you will learn the Python Programming Language with real time coding exercises in Jupyter Notebook, in a very easy to understand language.
 
 
 
First of all, you will see how to install and start using the Jupyter Notebook.
 
Then we will start with the various useful topics of Python.
 
 
 
Lets have a look at some theoretical part (not covered in video lectures).
 
 
 
Introduction -
 
Python is a high-level programming language that uses instructions to teach the computer how to perform a task. Python is an easy to learn, powerful programming language.
 
A language which is closer to the human language (like English) is known as a high-level language.
 
Python provides an easy approach to object-oriented programming.
 
Object-oriented is approach used to write programs.
 
Python is a free and open source language i.e., we can read, modify and distribute the source code of Python scripts.
 
It was developed by Guido van Rossum and was released in 1991.
 
Python finds its application in various domains. Python is used to create web applications, used in game development, to create desktop applications, is used in Machine Learning and Data Science.
 
 
 
How Python Works ? -
 
We write instructions in Python language.
 
Python is an interpreted language, so there is no need to compiling it.
 
Python programs runs (executed) directly through source code. The source code is converted into Intermediate Bytecode and then Bytecode is converted into the native language of computer (i.e., machine language) internally by Python Interpreter. The code is executed and the output is presented.
 
Python Source Code > Intermediate Bytecode > Machine Language > Code Executed
 
 
 
What is a Program ? -
 
A Program is a set of instructions that tells the computer to perform a specific task. A programming language is the language used to create programs.
 
Eg. When we click on Play button on media player, then there is a program working behind the scene which tells the computer to turn on the music.
 
A built-in function is a function which is predefined and can be used directly. Eg. print()
 
Comments are the pieces of code which are ignored by the python interpreter. Comments are used to make source code easier to understand by other people. Python supports single line comments mean they can cover only one line.
 
 
 
 
 
The various topics explained in this course video lectures with examples are as follows -
 
 
 
1. VARIABLES
 
a = 2 , b = 1.2 , c = ‘Ram’, d = lambda (‘any function’)
 
# Variables are used to store values. The stored values in the variables can be used later in the programs. We can retrieve them by referring to the variable names.
 
 
 
2. DATATYPES IN PYTHON
 
Integer (int), Float , String (str) , List , Tuple , Set , Dictionary
 
 
 
3. String – String is a series of characters, surrounded by single or double quotes. Eg. “Hello”, ‘Hello999’, ‘999’.
 
 
 
4. LIST
 
[ int /float / str ] à A = [ 1 , 2 , 3.4 , 3.4, ‘a’ , ‘bcd’ ]
 
à Collection of data-types, Mutable : Values can be changed , Ordered : Values order will be as it is , Changeable , Allows duplicate values.
 
 
 
5. TUPLE
 
( int / float / str ) à B = (1 , 2 , 3.4 , 3.4 , ‘a’ , ‘bcd’ )
 
àImmutable : Values can’t be changed , Ordered : Values order will be as it is , Unchangeable, Heterogeneous Data, Allows duplicate values.
 
 
 
6. SET
 
{ int / float / str } à C = { 1 , 2 , 3.4 , 5.6 , ‘a’ , ‘bcd’ }
 
àValues can’t be changed but new values can be added , Unordered : Values order may change , Arrange the items in ascending order, Doesn’t allow duplicate values, Un-indexed.
 
 
 
7. DICTIONARY
 
{ Key : Value } à D = { K1 : 1 , K2 : 2 , K3 : 3.4 , K4 : 5.6 , K5 : ‘ab’ , K6 : ‘bcd’ }
 
à Mutable , Unordered , Doesn’t allows duplicate keys , Indexed, Keys must be unique & immutable.
 
 
 
8. CONCATENATION – Combining Strings
 
first = ‘Data’
 
last = “Science”
 
new = first + ‘ ’ + last + ‘ is the combined string’
 
 
 
9. “\n” – For next new line
 
print("My Name is", "\n" , "My city is ", "\n" ,"My country is")
 
print(‘Delhi’) , print(‘’) , print(‘Noida’) # To create a gap of one line between two strings.
 
 
 
10. LIST FUNCTONS
 
< Press ‘Tab’ button from the keyboard after typing the list name (A here) to show the available functions >
 
A.append(55) - To add a new value at the end of the list.
 
A.clear( ) – To clear/delete/blank a list.
 
B = A.copy( ) – To create a copy of the list.
 
A.count(5) – To count how many times a value occurs.
 
A.extend(c) – To add a new list in the existing list.
 
A.index(7) – To show the index of a value. # A.index(value, start_index, stop_index)
 
A.insert(3,66) – To insert a new value at a given position.
 
A.pop(3) – To delete a value with the help of index. # A.pop( )
 
A.remove( 55) – To delete a value from the list.
 
A.reverse( ) – To reverse the list.
 
A.sort( ) – To sort the list. # A.sort(reverse=True)
 
del A[ 1 : 4 ] – To delete some items from the list.
 
type(A) – To see the type.
 
List Concatenation - A = [1,2,3,4] , B = [5,6,7,8] ; C = A+B = [1,2,3,4,5,6,7,8]
 
 
 
11. TUPLE FUNCTONS
 
T.count(5) – To count how many times a value occurs.
 
T.index(7) – To show the index of a value.
 
 
 
12. SET FUNCTONS
 
S.add(5) – To add a new value 5 in the set.
 
S.clear() – To clear all the elements of the set.
 
S.copy() – To copy a set.
 
S1.difference(S2) – S1-S2 - It shows the elements of set S1 only.
 
S1.difference_update(S2) – It removes all common elements from the set1.
 
S.discard(x) – It will remove an element(x) from the set. If x is not in set, it will not show error.
 
S.remove(x) – It will remove an element(x) from the set. If x is not in set, it will show an error.
 
S.pop() – It deletes the first/random element of the set.
 
S1.Union(S2) – Set1 | Set2 – It shows all elements of set1 and set 2.
 
S1.Intersection(S2) – Set1 & Set2 – It shows common elements of set1 and set2.
 
S1.Intersection_update(S2) – Now set S1 will contain only common elements.
 
S1.isdisjoint(S2) – It returns True, if S1 & S2 don’t have any common values, otherwise False.
 
S1.issubset(S2) – It returns True, if all elements of S1 are in set S2.
 
S2.issuperset(S1) – It returns True, if all elements of S1 are in set S2, otherwise False.
 
len(S) – It shows the no. of unique elements in the set.
 
S1.symmetric_difference(S2) – S1^S2 – To show the non-common elements from S1 and S2.
 
S1.symmetric_difference_update(S2) - Now set S1 will contain only non-common elements.
 
S1.update([4,5,6]) – To add multiple items, in list/tuple/set form.
 
 
 
13. DICTIONARY FUNCTONS
 
D.clear( ) – To delete the dictionary.
 
E = D.copy( ) – To copy a dictionary.
 
D.get(‘K1’) – To get the value against a key in the dictionary. If the key is not in dictionary, it will show None, without showing any error.
 
D.items( ) – To show all the items of a dictionary.
 
D.keys( ) – To show all the keys of a dictionary.
 
D.values( ) – To show all the values of a dictionary.
 
D.pop(‘K1’) – To delete the key alongwith its index.
 
D.popitem( ) – To delete the last key with value.
 
D.setdefault(‘K3’) , D.setdefault(‘K4’, value), D[‘K4’] = value - To add a key at the end of the dictionary.
 
D.update(‘E’) – To add a new dictionary in the existing dictionary.
 
D.fromkeys(A) – To create a dictionary, using list items as keys. And adding a value to all keys is optional.
 
“Key” in D – To check the presence of any element(key) in the dictionary.
 
 
 
14. DATATYPE CASTING
 
Converting a datatype into another.
 
int (1) =>1 - Converting int into int
 
int (3.2) => 3 – Converting float into int
 
int (‘5’) => 5 – Converting a numerical string into int
 
int (‘a’) => error – Can’t convert an alphabetical string into int
 
float (3.2) => 3.2 – Converting float into float
 
float (6) => 6.0 – Converting int into float
 
float (“10”) => 10.0 – Converting a numerical string into float
 
float (‘b’) => error – Can’t convert an alphabetical string into float
 
 
 
Str (‘a’) => ‘a’ – Converting a string into string
 
str (1) => ‘1’ – Converting an int into string
 
str (3.2) => ‘3.2’ – Converting a float into string
 
 
 
15. RANGE - It creates a sequential list of numbers.
 
range(start value, stop value, step value) , range(0,50,1) , range(1, 50) , range(50)
 
 
 
16. FUNCTION – A function is a block of code, which is defined to perform some task. We have call a function to run it whenever required.
 
Parameter : Given at the time of defining function . Ex : def func(a,b)
 
Arguments : Given at the time of calling the function . Ex : func(2,3)
 
def fun_name ( args / parameters ) : multiple line statement ,
 
def fun_name ( var1, var2 ) : multiple line statement
 
def new ( 2 , 3 ) : c = a + b , return c
 
 
 
If the number of arguments to be passed is not fixed…then we use the Arbitrary Arguments (with *args)
 
Ex : def func(*values) : for i in values print(i) # It can take any number of arguments.
 
Keyword Arguments : We can also send the args with key=value syntax.
 
Ex : def new(b,a,c): print("The winner is " , a)
 
new(a= ‘Ram’, b= ‘Sham’, c= ‘Shiva’) ….. O/p will be : The winner is Ram
 
 
 
17. LAMBDA FUNCTION à It is a single line function.
 
fun_name = lambda parameters : single line statement
 
Ex : sum = lambda a , b : a + b
 
 
 
18. INPUT FUNCTION – It takes an input and can save it to a variable.
 
Ex 1 : a = input ( ‘Enter your name’ ) ,
 
Ex 2 : print ( ‘Enter your name’ )
 
x = input ( )
 
 
 
19. INDEXING – list.index( item ) , list [index value] , list [ start : stop : step ]
 
A.index(25) , A[1] , A [ 1 : 20 : 2 ] , A [ : 4 ] , A[ 2 : ] , A [ : ]
 
 
 
Negative Indexing – A[-1] , A [ 8 : 0 : -1 ] , A [ : : -1 ]
 
String Indexing – A.index( ‘r’ ) , A[ : 16 ]
 
 
 
Nested List - List in a list
 
Ex : A = [ [1,2,3] , 4 , 5 , 6 , [ 7,8,9] ]
 
 
 
20. FOR LOOP – for val in sequence : body of for loop,
 
Ex 1 : for x in [1,2,3,4,5] : print (x) ,
 
Ex 2 : for i in ‘banana’ : print (i)
 
 
 
BREAK STATEMENT (For Loop) – To stop the loop at a given condition
 
1) for val in sequence : body of for loop if val == ‘seq_value’ , break
 
Ex : for x in [1,2,3,4,5,6,7] :
 
print (x)
 
if x == 5
 
break
 
2) for val in sequence : if val == ‘seq_value’ break , print(val)
 
Ex : for x in [1,2,3,4,5,6,7] :
 
if x == 5
 
break
 
print(x)
 
 
 
CONTINUE STATEMENT (For Loop) – To skip over an iteration
 
1) for x in [1,2,3,4,5] :
 
if x == 4
 
continue
 
print(x)
 
2) for x in [1,2,3,4,5] :
 
print (x)
 
if x == 4
 
continue
 
 
 
BREAK & CONTINUE STATEMENT (For Loop) –
 
Ex : for x in [1,2,3,4,5,6,7]:
 
if x == 5 :
 
continue
 
if x == 6:
 
break
 
print(x)
 
 
 
RANGE FUNCTION –
 
for x in range (6):
 
print (x)
 
 
 
ELSE IN FOR LOOP –
 
1) for x in range(6):
 
print (x)
 
else :
 
print (‘loop is finished’)
 
 
 
2) for x in range(0,6):
 
print (x)
 
if x == 4 :
 
break
 
else :
 
print(‘loop is finished’)
 
 
 
PASS STATEMENT – To pass over to the next commands
 
1) for x in [1,2,3,4,5,6,7]:
 
Pass
 
2) for x in [1,2,3,4,5,6,7]:
 
if x == 3:
 
pass
 
print (x)
 
 
 
21. WHILE LOOP – A while loop repeats a block of code as long as a certain condition is true.
 
1) i = 0
 
while i < 6 :
 
print (i)
 
i = i +1
 
2) i = 0
 
while i < 6 :
 
i = i +1
 
print (i)
 
 
 
BREAK STATEMENT (While Loop) –
 
1) i = 0
 
while i < 6 :
 
print (i)
 
if i == 4 :
 
break
 
i = i +1
 
2) i = 0
 
while i < 6 :
 
if i == 4 :
 
break
 
print (i)
 
i = i + 1
 
 
 
CONTINUE STATEMENT (While Loop) –
 
1) i = 0
 
while i < 6 :
 
i = i +1
 
if i == 3 :
 
continue
 
print (i)
 
2) i = 0
 
while i < 6 :
 
if i == 3 :
 
continue
 
print (i)
 
i = i +1
 
3)i = 0
 
while i < 6 :
 
if i == 3:
 
continue
 
i = i + 1
 
print (i)
 
 
 
ELSE IN WHILE LOOP –
 
1) i = 0
 
while i < 6 :
 
print (i)
 
i = i+1
 
else:
 
print (‘condition ends’)
 
 
 
BREAK & CONTINUE STATEMENT (While Loop) –
 
i = 0
 
while i < 10 :
 
i = i + 1
 
if i = = 3:
 
continue
 
if i = = 9 :
 
break
 
print (i)
 
 
 
22. SPLIT FUNCTION
 
It splits a string into a list.
 
Syntax : string.split ( separator , maxsplit )
 
23. MAP FUNCTION
 
It takes all items of a list and apply a function to it.
 
Syntax : map( function, iterables ) or map( condition, values )
 
Ex : list ( map ( lambda x : x+1 , [1,2,3,4,5] ) )
 
 
 
24. FILTER FUNCTION
 
It takes all items of a list and apply a function to it & returns a new filtered list.
 
Syntax : filter( function, sequence )
 
Ex : list ( filter ( lambda x : x%2 != 0 , [1,2,3,4,5,6] ) )
 
 
 
25. ENUMERATE FUNCTION
 
It is used to display output with index. We can enumerate as list, tuple, set, dictionary.
 
Syntax : enumerate( list )
 
Ex : list ( enumerate (‘apple’ , ‘mango’ , ‘orange’) )
 
 
 
26. ZIP FUNCTION
 
It is used to zip different iterators(lists) in one.
 
Syntax : z = zip(list1, list2, list3)
 
z = list(z) , print(z)
 
Example : A = [1,2,3] , B = [‘Ram’ , ‘Sham’ , ‘Shiva’] , C = [‘Delhi’, ‘Noida’, ‘Agra’]
 
z = zip(A, B, C) , z = list(z) , print(z)
 
 
 
27. UNZIP FUNCTION
 
Syntax : list1, list2, list3 = zip(*z)
 
Ex : A, B, C = zip(*z)

  • No programming experience required, its beginners friendly
  • Required any IDE like Jupyter Notebook or Pycharm or Google Colab etc.
  • Beginner Python Developers or interested in Data Science / Machine Learning / Data Analytics
  • Anyone wants to learn Python Programming
View More...
  • Section 1 : Start Jupyter Notebook 1 Lectures 00:05:31

    • Lecture 1 :
  • Section 2 : Python Programming 39 Lectures 07:08:35

    • Lecture 1 :
    • Variables in Python
    • Lecture 2 :
    • Data Types in Python
    • Lecture 3 :
    • Python Lists
    • Lecture 4 :
    • Python Tuples
    • Lecture 5 :
    • Python Sets
    • Lecture 6 :
    • Python Dictionary
    • Lecture 7 :
    • Strings in Python
    • Lecture 8 :
    • Datatype Casting in Python
    • Lecture 9 :
    • Python - Range Function
    • Lecture 10 :
    • Input - Input Function
    • Lecture 11 :
    • Indexing & Slicing in Python
    • Lecture 12 :
    • Python Operators
    • Lecture 13 :
    • Python - Map Function
    • Lecture 14 :
    • Python - Filter Function
    • Lecture 15 :
    • Python - Split Function
    • Lecture 16 :
    • Python - Enumerate Function
    • Lecture 17 :
    • Python - Zip & Unzip Function
    • Lecture 18 :
    • Python - Def Function
    • Lecture 19 :
    • Python - Lambda Function
    • Lecture 20 :
    • If-Else in Python
    • Lecture 21 :
    • For Loop in Python
    • Lecture 22 :
    • While Loop in Python
    • Lecture 23 :
    • Python - Break & Continue Statements
    • Lecture 24 :
    • Numpy Arrays
    • Lecture 25 :
    • Numpy - Zeros Array
    • Lecture 26 :
    • Numpy - Ones Array
    • Lecture 27 :
    • Numpy - Full Array
    • Lecture 28 :
    • Numpy - Random Function
    • Lecture 29 :
    • Numpy - Linspace Function
    • Lecture 30 :
    • Numpy - Empty Function
    • Lecture 31 :
    • Numpy - Eye Array Function
    • Lecture 32 :
    • Numpy - Identity Array Function
    • Lecture 33 :
    • Numpy - Zeros Like, Ones Like, Full Like Arrays
    • Lecture 34 :
    • Numpy - Diagonal Array Function
    • Lecture 35 :
    • Numpy - Transpose Function
    • Lecture 36 :
    • Numpy - Unary Operators
    • Lecture 37 :
    • Numpy - Vstack Hstack
    • Lecture 38 :
    • Numpy - Array Indexing
    • Lecture 39 :
    • Numpy - Any _ All Function
  • How do i access the course after purchase?

    It's simple. When you sign up, you'll immediately have unlimited viewing of thousands of expert courses, paths to guide your learning, tools to measure your skills and hands-on resources like exercise files. There’s no limit on what you can learn and you can cancel at any time.
  • Are these video based online self-learning courses?

    Yes. All of the courses comes with online video based lectures created by certified instructors. Instructors have crafted these courses with a blend of high quality interactive videos, lectures, quizzes & real world projects to give you an indepth knowledge about the topic.
  • Can i play & pause the course as per my convenience?

    Yes absolutely & thats one of the advantage of self-paced courses. You can anytime pause or resume the course & come back & forth from one lecture to another lecture, play the videos mulitple times & so on.
  • How do i contact the instructor for any doubts or questions?

    Most of these courses have general questions & answers already covered within the course lectures. However, if you need any further help from the instructor, you can use the inbuilt Chat with Instructor option to send a message to an instructor & they will reply you within 24 hours. You can ask as many questions as you want.
  • Do i need a pc to access the course or can i do it on mobile & tablet as well?

    Brilliant question? Isn't it? You can access the courses on any device like PC, Mobile, Tablet & even on a smart tv. For mobile & a tablet you can download the Learnfly android or an iOS app. If mobile app is not available in your country, you can access the course directly by visting our website, its fully mobile friendly.
  • Do i get any certificate for the courses?

    Yes. Once you complete any course on our platform along with provided assessments by the instructor, you will be eligble to get certificate of course completion.
  • For how long can i access my course on the platform?

    You require an active subscription to access courses on our platform. If your subscription is active, you can access any course on our platform with no restrictions.
  • Is there any free trial?

    Currently, we do not offer any free trial.
  • Can i cancel anytime?

    Yes, you can cancel your subscription at any time. Your subscription will auto-renew until you cancel, but why would you want to?

2256 Course Views

3 Courses

Hi, I am a Data Analyst, engaged with YouTube channel 'Data Science Lovers'. I have worked on various data analytics projects with Python. I try to explain all the concepts in a very easy way so that even a beginner can understand and learn without any doubt. Keep learning with us, you will enjoy the lectures. Thank You so much
View More...
  • Unmatched Variety and Value!
    Learnfly's monthly subscription offers unlimited access to a vast range of courses. Affordable pricing, compared to competitors, makes it the ultimate choice for continuous learning.
    Jessica M.

    4.7

    JM
  • Top-Notch Quality, Affordable Rates!
    High-quality courses with certified instructors make Learnfly stand out. The affordable pricing is a game-changer for those seeking premium education.
    Alex P.

    4.5

    AP
  • Certified Excellence Every Time!
    Learnfly's courses, taught by certified instructors, ensure top-notch learning experiences. The course completion certificates add significant value to one's skill set.
    Sarah R.

    4.3

    SR
  • Round-the-Clock Support!
    Learnfly goes the extra mile with 24/7 course support. Their dedication to helping students succeed is commendable.
    Ryan K.

    4.1

    RK
  • Learn Anywhere, Anytime!
    Whether on mobile, PC, or tablet, Learnfly's platform offers flexibility. Learning on the go has never been easier.
    Emily S.

    4.7

    ES
  • Job-Ready Skills!
    Learnfly's job-oriented courses equip learners with practical skills for the workplace. An investment in career growth!
    Jake M.

    4.2

    JM
  • Budget-Friendly Brilliance!
    Learnfly's pricing is a steal for the quality and variety of courses offered. Quality education without breaking the bank.
    Olivia T.

    4.5

    OT
  • Instructor Excellence Unleashed!
    Learn from the best with Learnfly's certified instructors. The platform ensures that knowledge is imparted by industry experts.
    Daniel L.

    4.0

    DL
  • Achievement Unlocked!
    Learnfly not only offers courses but also recognizes your efforts with course completion certificates. A sense of accomplishment with every course finished.
    Maya H.

    4.6

    MH
  • Learning Revolution!
    Learnfly's platform is a revolution in education. Access to unlimited courses at affordable rates is a game-changer.
    Ethan W.

    4.7

    EW
  • google-tensorflow-hands-on-with-python-latest

    Google TensorFlow Hands on with Pyt...

    By : UNP United Network of Professionals

    Lectures 51 Beginner 3:48:44
  • learn-elixir-programming-from-zero-to-hero

    Learn ELIXIR programming from Zero ...

    By : Pranjal Srivastava

    Lectures 35 Beginner 3:12:57
  • create-your-own-programming-language-from-scratch

    Create your OWN Programming Languag...

    By : Harshit Srivastava

    Lectures 6 Intermedite 0:42:43
  • getting-started-with-coding

    Getting started with coding

    By : Devansh ‎

    Lectures 27 Beginner 3:37:31
  • superb-python-course-become-certified-python-developer

    Superb Python Course - Become Certi...

    By : Paul Carlo Tordecilla

    Lectures 91 Beginner 2:49:20
  • c-from-the-beginning

    C# from the beginning

    By : Igor Evdokimov

    Lectures 31 Beginner 2:46:54

Students learning on Learnfly works with Fortune 500 companies around the globe.

Sign Up & Start Learning
By signing up, you agree to our Terms of Use and Privacy Policy
Reset Password
Enter your email address and we'll send you a link to reset your password.