Sorry, this page is no longer available
We may earn an affiliate commission when you visit our partners.
Course image
Data Science Lovers

In this course, you will embark on a journey into the world of the Python Programming Language through hands-on coding exercises in Jupyter Notebook, presented in an exceptionally accessible manner.

To begin, you will be guided through the installation and initial usage of the Jupyter Notebook environment, setting the stage for an immersive learning experience.

Subsequently, we will delve into the various essential topics of Python programming.

Lets have a look at some theoretical part (not covered in video lectures).

Introduction -

Read more

In this course, you will embark on a journey into the world of the Python Programming Language through hands-on coding exercises in Jupyter Notebook, presented in an exceptionally accessible manner.

To begin, you will be guided through the installation and initial usage of the Jupyter Notebook environment, setting the stage for an immersive learning experience.

Subsequently, we will delve into the various essential topics of Python programming.

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.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. String – String is a series of characters, surrounded by single or double quotes. Eg. “Hello”, ‘Hello999’, ‘999’.

4. LIST

[ int /float / str ] à A = [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 = {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.4 , K4 : 5.6 , K5 : ‘ab’ , K6 : ‘bcd’ }

à Mutable , Unordered , Doesn’t allows duplicate keys , Indexed, Keys must be unique & immutable.

8. “\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.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 = [count(5) – To count how many times a value occurs.

T.index(7) – To show the index of a value.

12.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.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.

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.

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] 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)

1) i = 0

while i < 6 :

print (i)

i = i +1

2) i = 0

while i < 6 :

i = i +1

print (i)

Syntax : string.split ( separator , maxsplit )

23.

Syntax : map( function, iterables ) or map( condition, values )

Ex : list ( map ( lambda x : x+1 , [1,2,3,4,5] ) )

24.

Syntax : filter( function, sequence )

Ex : list ( filter ( lambda x : x%2 . = 0 , [ We can enumerate as list, tuple, set, dictionary.

Syntax : enumerate( list )

Ex : list ( enumerate (‘apple’ , ‘mango’ , ‘orange’) )

26.

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.

Enroll now

What's inside

Learning objectives

  • Python programming language from scratch
  • Gaining practical experience with real-time exercises
  • Python datatypes - list, tuple, set, dictionary
  • Understanding the concept of programs in python
  • Writing and using python functions
  • Various functions - range, input, map, filter, split, enumerate, zip, unzip, def, lambda
  • Loops in python - for loop, while loop etc
  • Indexing, slicing, datatype casting in python
  • You can download each lecture video and source code files

Syllabus

Learn how to Install Jupyter Notebook For Python Programming

In this video, you will learn step-by-step how to install the Anaconda Software, Run Jupyter Notebook and Start writing the Python codes in it.

Read more

Basic Python Tutorial - 1 ... Variables in Python || Examples || Integer, Float, String

Variables Quiz

Basic Python Tutorial - 2 ... Data-Types || List, Tuple, Set, Dictionary | Examples & Properties

Basic Python Tutorial - 3 ... List in Python || Examples || Functions - Append, Insert, Remove, Pop

Basic Python Tutorial - 4 ...Tuples in Python || Examples | Properties

Basic Python Tutorial - 5 ... Sets in Python || Examples | Properties | Functions - Remove, Pop, Add

Basic Python Tutorial - 6 ... Dictionary in Python || Functions - get, items, keys, values, pop

Basic Python Tutorial - 7 ... Strings in Python || Examples | Functions - Len, Strip, Lower, Upper

Basic Python Tutorial - 8 ... DataType Conversion (Casting) in Python || Example | Integer-Float

Basic Python Tutorial - 9 ... Range Function in Python || Examples | With one, two, three arguments

Basic Python Tutorial - 10 ... How To Take Input From Users || Input Function in Python

Basic Python Tutorial - 11 ... Indexing & Slicing in Python || Examples | Negative Indexing

Basic Python Tutorial - 12 ... Operators in Python || Logical, Arithmetic, Assignment, Comparison

Basic Python Tutorial - 13 ... Map Function in Python || Example | map(function, sequence/values)

Basic Python Tutorial - 14 ... Filter Function in Python || With Examples

Basic Python Tutorial - 15 ... Split Function in Python | With Examples

Basic Python Tutorial - 16 ... Enumerate Function in Python || With Examples

Basic Python Tutorial - 17 ... Zip & UnZip Function in Python || With Examples

Basic Python Tutorial - 18 ... Defining Functions in Python || Examples | Def Function

Basic Python Tutorial - 19 ... Lambda Function in Python || Examples | Single Line Functions

Basic Python Tutorial - 20 ... If Else | Python | Elif Statement | With Examples

Basic Python Tutorial - 21 ... For Loop in Python | With Examples

Basic Python Tutorial - 22 ... While Loop in Python | With Examples

Basic Python Tutorial - 23 ... Break & Continue Statement in Python | With Examples

Traffic lights

Read about what's good
what should give you pause
and possible dealbreakers
Provides a practical introduction to Python programming using Jupyter Notebooks, which is a standard tool in data science and facilitates hands-on learning
Covers fundamental Python data structures like lists, tuples, sets, and dictionaries, which are essential for data manipulation and analysis
Explores Python functions, including lambda functions, which are crucial for writing concise and efficient code in data science workflows
Includes instruction on loops and conditional statements, which are fundamental programming constructs needed for data processing and algorithm implementation
Teaches data type casting, which is necessary for ensuring data compatibility and performing accurate calculations in data analysis
Introduces built-in functions like map, filter, split, enumerate, and zip, which are valuable for data transformation and preparation

Save this course

Create your own learning path. Save this course to your list so you can find it easily later.
Save

Reviews summary

Beginner python fundamentals for data science

According to learners, this course offers a solid foundation in basic Python programming for those interested in data-related fields. Students appreciate the clear explanations and hands-on exercises conducted in Jupyter Notebook, finding it particularly helpful for getting started with coding from scratch. Reviewers highlight that the course excels at teaching core Python concepts like data types, functions, and loops. However, some noted that despite the title, the curriculum primarily focuses on the language fundamentals and does not extensively cover essential data science libraries such as Pandas or NumPy. It's seen as a highly beneficial starting point for absolute beginners but may require supplemental learning for comprehensive data science skills.
Pace suits beginners, may be slow for others.
"The pace is perfect for someone starting from zero programming knowledge."
"For me, the course felt a bit slow as it covered very basic concepts."
"Wish some topics were explored in slightly more depth."
"It moves at a comfortable speed through the fundamentals."
Teaches core Python language features.
"This course covers the fundamental Python data types, loops, and functions well."
"It's a good introduction to the Python language itself."
"The syllabus accurately reflects the focus on core Python syntax and structures."
"Learned the basics of variables, lists, dictionaries, etc."
Includes helpful coding practice.
"The hands-on coding exercises in Jupyter Notebook were really helpful for practicing what was taught."
"Appreciated the 'real-time experience' aspect with practical examples."
"Doing the coding problems helped solidify my understanding."
"The labs gave me confidence in writing actual Python code."
Content is easy to follow for beginners.
"The instructor's explanations are very clear and easy to understand, even if you have no prior coding experience."
"Liked how the basic concepts were broken down and explained simply."
"Great course for absolute beginners; everything is explained step-by-step."
"Found the explanations concise and directly to the point."
Does not cover advanced data science tools.
"While it's titled 'Python For Data Science', it doesn't actually cover libraries like Pandas or NumPy."
"Expected more content on data analysis using Python libraries."
"It's basic Python, not really data science specific content."
"Good for Python fundamentals, but if you want data science tools, you need another course."

Activities

Be better prepared before your course. Deepen your understanding during and after it. Supplement your coursework and achieve mastery of the topics covered in Python For Data Science - Real Time Experience with these activities:
Review Basic Python Syntax
Reinforce your understanding of fundamental Python syntax before diving into data science-specific concepts. This will help you write cleaner and more efficient code throughout the course.
Browse courses on Python Syntax
Show steps
  • Review Python's basic syntax rules and conventions.
  • Practice writing simple Python programs.
  • Test your knowledge with online quizzes.
Review 'Automate the Boring Stuff with Python'
Enhance your Python skills by learning how to automate common tasks. This book will provide practical examples and exercises to reinforce your understanding of Python programming.
Show steps
  • Read the chapters on automating tasks with Python.
  • Try out the code examples and modify them to suit your needs.
  • Apply the techniques learned to automate your own tasks.
Practice List and Dictionary Operations
Sharpen your skills in manipulating lists and dictionaries, which are essential for data manipulation in Python. Regular practice will improve your speed and accuracy.
Show steps
  • Create lists and dictionaries with different data types.
  • Perform common operations like adding, removing, and updating elements.
  • Solve coding challenges involving list and dictionary manipulation.
Four other activities
Expand to see all activities and additional details
Show all seven activities
Review 'Python Data Science Handbook'
Supplement your learning with a comprehensive guide to Python data science. This book will provide deeper insights into the tools and techniques covered in the course.
Show steps
  • Read the chapters relevant to the course topics.
  • Work through the examples and exercises in the book.
  • Use the book as a reference when working on projects.
Create a Cheat Sheet for Python Data Structures
Consolidate your understanding of Python data structures by creating a cheat sheet. This will serve as a valuable reference during and after the course.
Show steps
  • Summarize the key properties and methods of lists, tuples, sets, and dictionaries.
  • Include code examples for common operations.
  • Organize the cheat sheet for easy reference.
Create a Personal Python Function Library
Develop a library of reusable Python functions that you can use in future data science projects. This will save you time and effort in the long run.
Show steps
  • Identify common data science tasks that can be automated with functions.
  • Write Python functions to perform these tasks.
  • Document your functions with clear and concise docstrings.
  • Organize your functions into a Python module.
Build a Simple Data Analysis Script
Apply your Python skills to a real-world data analysis task. This project will solidify your understanding of data manipulation and analysis techniques.
Show steps
  • Choose a dataset from a public source.
  • Write a Python script to load, clean, and analyze the data.
  • Visualize your findings using matplotlib or seaborn.

Career center

Learners who complete Python For Data Science - Real Time Experience will develop knowledge and skills that may be useful to these careers:
Data Analyst
A data analyst uses programming and visualization to extract actionable intelligence from data. This course provides a foundation in Python, specifically the ability to manipulate data using lists, tuples, sets, and dictionaries, all of which are vital for data analysis. Data analysts use functions, loops, and conditional statements, all covered in this course, to process and explore data. This course may be useful for anyone interested in this career as it introduces the foundational Python skills necessary for this role.
Data Scientist
Data scientists analyze and interpret complex data, often employing programming languages like Python. This course introduces essential Python concepts, such as data structures, functions, and control flow (including loops and conditional statements) that are fundamental for data analysis and manipulation. This course also covers data type conversions and the use of functions like map and filter, which a data scientist would need for preprocessing data. Those looking to become a data scientist may find that this course helps them attain the necessary foundational skills.
Machine Learning Engineer
Machine learning engineers build and maintain machine learning models and the systems that support them. This often involves using Python to manipulate data, build models, and evaluate results. This course teaches essential Python constructs such as data structures, functions, and control flow, all of which are critical for this purpose. Because machine learning engineers frequently handle lists, tuples, sets and dictionaries to wrangle data, this course may be helpful for anyone looking to get into the field.
Financial Engineer
Financial engineers develop and implement financial models, often using programming languages like Python. This course can help build a foundation in the Python programming language, covering key concepts such as data types, data structures, and user-defined functions. Because those in this field may need to manipulate data with Python, this may be useful for anyone pursuing this career.
Business Intelligence Analyst
Business intelligence analysts work with data to understand trends, provide insights, and inform business strategies. This often involves using programming languages like Python to clean and process data. This course introduces the necessary Python skills, including how to use data structures, write functions, and control program flow via loops and conditional statements that are helpful for business analysts. Anyone interested in this career may find that this course assists them in developing a foundation of programming skills.
Quantitative Analyst
Quantitative analysts, or quants, develop and implement mathematical and statistical models for financial markets. This involves using programming languages like Python for data analysis and model building. This course introduces necessary Python skills, such as data structures, functions, and control flow. A person looking to work as a quant may find that this course builds a foundation in programming and helps them embark on their goals.
Quantitative Researcher
Quantitative researchers develop and implement mathematical and statistical models, often using programming languages like Python for data analysis and simulation. This course provides an introduction to the Python language, covering data types, data structures, as well as how to define and use functions. Those who want to work as a quantitative researcher may find that this course helps them to build a foundation for further study.
Operations Research Analyst
Operations research analysts use mathematical and analytical techniques to optimize business processes. This may involve using programming languages like Python to build models and analyze data. This course introduces Python, covering the data structures, functions, and flow-control such as loops and conditional statements needed for simple analysis. Those who want to work as an operations research analyst may find that this course helps them build a foundation in programming.
Research Scientist
Research scientists conduct experiments, analyze data and publish findings. Many fields of research rely on software skills, including the ability to analyze data using Python, which is taught in this course. This program covers working with data structures, building functions, and applying control flow that can assist anyone in this field. This course may be useful for research scientists who need a foundation in Python programming.
Statistician
Statisticians collect, analyze, and interpret data to inform decisions, often using programming to perform analysis and visualization. This course introduces the Python language, covering core concepts that are relevant to the field. Learning about lists, sets, dictionaries and other structures in Python may be useful for a statistician. This course may assist statisticians in acquiring a foundational understanding of programming for their work. Those in the field may find this course helpful.
Bioinformatician
Bioinformaticians analyze biological data, often using programming to perform analysis and visualization. This course will introduce you to the Python programming language, covering core concepts that are relevant to the field. Learning about data structures and functions in Python may be directly useful for a bioinformatician. Those in the field may find this course helpful.
Software Developer
Software developers design, write, and test code, often collaborating with other developers to build applications. In this role, a strong grasp of programming principles, particularly in a language like Python, is needed, and this course introduces Python using hands-on exercises. This includes learning about data types and data structures, as well as how to write and use loops and functions. The skills that are introduced in this course help to build the foundation necessary for any software developer working with the Python language.
Research Analyst
Research analysts conduct research, gather data, and prepare reports on various topics. This may involve some use of programming to automate data cleaning and preprocessing. This course introduces Python, covering data structures such as lists, tuples, sets and dictionaries. A research analyst may find that this course builds a foundation for using scripting in their work.
Financial Analyst
Financial analysts analyze financial data, create reports, and help make decisions for businesses. This may involve the use of scripting for data processing, cleaning, and visualization. This course introduces Python, covering key data structures as well as functions. Those in this career path may find this course useful for automating tasks and developing a basic ability to work with data using Python.
Database Administrator
Database administrators manage and maintain databases, ensuring data integrity and accessibility. While not directly working in code, they may use scripting for data manipulation and automation. This course in Python can help build a foundation in programming concepts, data structures, and program flow. This may be helpful for database administrators who wish to use Python to manage and interact with databases.

Reading list

We've selected two books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in Python For Data Science - Real Time Experience.
Provides a comprehensive overview of essential Python data science tools and techniques. It covers NumPy, Pandas, Matplotlib, and Scikit-Learn in detail, making it an excellent reference for this course. The book is particularly helpful for understanding data manipulation, analysis, and visualization. It is commonly used as a textbook in data science programs.
Practical guide to using Python for automating everyday tasks. While not strictly focused on data science, it provides a solid foundation in Python programming and introduces useful libraries. It's particularly helpful for beginners who want to learn Python through hands-on projects. This book is more valuable as additional reading to build a stronger Python foundation.

Share

Help others find this course page by sharing it with your friends and followers:

Similar courses

Similar courses are unavailable at this time. Please try again later.
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2025 OpenCourser