Introduction to Programming & Python | Python Tutorial - Day #1

CodeWithHarry
28 Nov 202211:50

Summary

TLDRWelcome to the '100 Days of Code' challenge focused on learning Python programming from scratch to job readiness. The course promises to start with easy lessons and progress to complex projects used in the industry. Python, created by Guido van Rossum in 1991, is a dynamic, object-oriented language known for its simplicity and versatility. The course includes theory, practice, exercises, and quizzes. The instructor uses Replit, a collaborative browser-based IDE, for easy code sharing. Python's features include its ease of use, platform independence, open-source nature, and extensive library support, making it suitable for various applications like web development, data science, and machine learning.

Takeaways

  • 🌟 The '100 Days of Code' challenge is designed to teach Python programming from beginner to job-ready level over 100 days.
  • 💻 Python is known for its simplicity and ease of learning, making it a popular choice for beginners.
  • 🎓 The course includes both theoretical lessons and practical exercises, with a focus on real-world applications.
  • 🚀 The course progresses from easy concepts to advanced projects used in the industry.
  • 👨‍💻 Python was created by Guido van Rossum in 1991, inspired by the Monty Python's Circus TV show.
  • 🌐 Python is a dynamically typed, object-oriented programming language that also supports functional programming.
  • 🛠️ The course will use Replit, a collaborative browser-based IDE, for code sharing and practice.
  • 🔧 Python is platform-independent, open-source, and has a large library support, making it versatile for various applications.
  • 🔎 Errors encountered while learning Python can often be solved by referring to community resources like Stack Overflow.
  • 🌐 Python can be used for web development, data science, machine learning, and complex mathematical operations.
  • 📝 The instructor emphasizes the importance of subscribing and turning on notifications to stay updated with the daily lessons.

Q & A

  • What is the main goal of the '100 days of code' challenge mentioned in the script?

    -The main goal of the '100 days of code' challenge is to learn Python programming from zero to job-ready level within 100 dedicated days.

  • What type of programming language is Python?

    -Python is a dynamically typed, object-oriented, and general-purpose programming language that also supports a functional approach.

  • Who created Python and in what year?

    -Python was created by Guido van Rossum in 1991.

  • What was the inspiration behind naming the language Python?

    -Guido van Rossum was watching a show named Monty Python's Circus on TV when he was working on the language, which inspired him to name it Python.

  • What is the significance of the '100 days of code challenge' in the comment section?

    -The significance is that participants accept the challenge by writing 'I accept 100 days of code challenge' in the comments, which serves as a commitment and a way to track progress.

  • What is the recommended way to practice Python as suggested in the script?

    -The script suggests using Replit, a collaborative browser-based IDE, for practicing Python because it's easy to use and allows for easy sharing of code.

  • Why is Python considered easy to learn according to the script?

    -Python is considered easy to learn because it has a simple syntax and is a dynamically typed language, which allows for quick learning and doing.

  • What are some of the applications of Python mentioned in the script?

    -Python can be used for web applications, database work, data science, machine learning, and complex mathematical operations.

  • What is the importance of checking the 'Path variable' when installing Python on Windows?

    -Checking the 'Path variable' during installation ensures that Python can be accessed from the command line or terminal, which is necessary for running Python scripts.

  • What is REPL and how does it relate to Python?

    -REPL stands for Read-Evaluate-Print Loop, which is a simple type of programming language interactive environment where Python commands can be executed. It allows users to write Python code and see the output immediately.

  • How does the script encourage viewers to stay engaged with the '100 days of code' series?

    -The script encourages viewers to subscribe to the channel, turn on notifications, and bookmark the Python playlist to ensure they don't miss any day of the '100 days of code' series.

Outlines

00:00

🚀 Introduction to the 100 Days of Code Challenge

The speaker introduces the '100 Days of Code' challenge, a comprehensive learning program designed to teach Python programming from scratch to a job-ready level. The course promises to start with easy concepts, gradually increasing in complexity as the days progress. The speaker highlights Python's dynamic typing, object-oriented nature, and its creation by Guido van Rossum in 1991. The course will include theory, practice, exercises, quizzes, and challenges. The speaker also demonstrates how to download and install Python, introduces Replit as a collaborative browser-based IDE, and encourages viewers to subscribe and accept the challenge by commenting.

05:02

🐍 Deep Dive into Python's Features and Applications

The speaker delves into Python's characteristics, emphasizing its simplicity, platform independence, and open-source nature. Python is described as a dynamically typed, general-purpose, high-level programming language that supports both object-oriented and functional programming paradigms. The speaker discusses Python's development timeline, starting from 1989, and its creator's inspiration from the Monty Python's Circus show. Key features such as its large library support and ease of integration with other languages are highlighted. The speaker also touches on Python's applications in various fields like data science, machine learning, web development, and complex mathematical operations. The installation process for different platforms is briefly covered, with a special note on setting the path variable during installation.

10:03

💻 Practical Demonstration of Python and Replit

The speaker provides a practical demonstration of using Python through Replit, an online IDE that allows for easy code execution and sharing. The video script shows how to create new files, read text, watch videos, and adjust the video size for a personalized learning experience. The speaker runs simple Python commands to illustrate the code execution process on Replit's servers. The speaker also encourages viewers to follow the '100 Days of Code' playlist, like the video, and subscribe to the channel to stay updated with the daily lessons. The session ends with a teaser for the next day's content, promising an interesting and fun topic for day 2.

Mindmap

Keywords

💡100 days of code

The '100 days of code' is a challenge designed to help individuals commit to learning programming over a 100-day period. It is a structured approach to learning and improving coding skills. In the video's context, the challenge is specifically focused on learning Python programming from a beginner to a job-ready level. The script emphasizes the dedication and consistency required to complete the challenge, promising to cover everything from basic to advanced concepts and real-world applications.

💡Python

Python is a high-level, interpreted programming language known for its readability and简洁性. It is the main focus of the video and the programming language that the '100 days of code' challenge will teach. The script mentions Python as being easy to learn, versatile, and widely used in various industries, making it an ideal language for the challenge.

💡Dynamically typed

A 'dynamically typed' language is one where the type of a variable is determined at runtime, not at compile time. This means that the same variable can, at different points in the program, hold values of different types. Python is described as dynamically typed in the script, which is one of its features that makes it easy to learn and use, as it reduces the need for explicit type declarations.

💡Object oriented programming

Object-oriented programming (OOP) is a programming paradigm that uses objects and classes to design applications and programs. Python supports OOP, which allows for code reusability and modular programming. The script mentions that Python is an object-oriented programming language, which is a key feature that will be explored during the '100 days of code' challenge.

💡Guido van Rossum

Guido van Rossum is the creator of Python and is often referred to as the 'Benevolent Dictator For Life' (BDFL). He started working on Python in 1989 and named it after the British comedy group Monty Python. The script mentions van Rossum to provide historical context to Python's creation and to personalize the language's origin story.

💡IDE

An integrated development environment (IDE) is a software application that provides comprehensive facilities to programmers for software development. The script suggests using an IDE or Visual Studio Code (VS Code) for writing Python code, highlighting the importance of having a good development environment to enhance productivity and code quality.

💡Replit

Replit is a cloud-based IDE that allows for collaborative coding in real-time through a web browser. The script introduces Replit as the platform the instructor will use to demonstrate Python coding, emphasizing its ease of use and the ability to share code with students, which aligns with the educational goals of the '100 days of code' challenge.

💡Read-Evaluate-Print Loop (REPL)

A Read-Evaluate-Print Loop, or REPL, is an interactive programming environment that reads input, evaluates it, and returns the result. Python has a REPL that allows users to interact with the Python interpreter directly. The script explains how to use Python's REPL as a calculator, demonstrating its utility for quick calculations and testing code snippets.

💡Open source

Open source refers to software where the source code is available to the public for use and modification. Python is described as an open-source programming language in the script, which means it can be freely used, modified, and shared. This openness is part of what makes Python accessible and popular among developers.

💡Library support

A library in programming is a collection of pre-written code that can be used in a program. Python has extensive library support, which means there are many pre-built modules that can be used to extend the functionality of Python programs. The script mentions Python's large library support as a benefit, allowing developers to leverage existing code to accomplish tasks more efficiently.

💡Path variable

The 'path variable' is an environment variable that tells the system where to look for executables and libraries. The script advises viewers to ensure that the Python installation path is set correctly to avoid 'Python not found' errors when trying to run Python from the terminal. This is practical advice for setting up a local development environment.

Highlights

100 Days of Code is a Python programming course designed to take learners from zero to job-ready.

The course starts with easy concepts and progresses to complex projects used in the industry.

Python is a dynamically typed, object-oriented programming language created by Guido van Rossum in 1991.

The name Python was inspired by the British comedy show Monty Python's Flying Circus.

The course includes theory, practice, exercises, quizzes, and challenges.

Replit is introduced as a collaborative browser-based IDE for writing Python code.

Replit allows for easy code sharing and is accessible even on computers with limited resources.

Python is praised for its simplicity and versatility.

Python is platform-independent, meaning code can be run on any operating system.

Python is open-source and free to use.

Python has extensive library support, enabling rapid development and problem-solving.

Python can be easily integrated with other programming languages.

Python has applications in web development, data science, machine learning, and more.

Installing Python is straightforward and can be done on any platform.

It's important to set the path variable when installing Python to use it through the terminal.

Python has a Read-Evaluate-Print Loop (REPL) for interactive computing.

Replit is used for its ease of use and the ability to share code with learners.

The course encourages active participation by asking learners to accept the 100 days code challenge in the comments.

The instructor demonstrates using Replit to write and run Python code.

Transcripts

play00:00

Welcome to 100 days of code guys

play00:02

In 100 days of code, we are going to learn Python programming

play00:04

From zero to job ready

play00:06

Which means here if you gave your 100 days

play00:09

Dedicated 100 days

play00:10

So in byte sized lesson I will tell you

play00:12

Python programming

play00:14

We will take it from 0 to advance

play00:16

In start you will feel that,

play00:18

It is so easy.

play00:20

Python is a kid's game.

play00:21

And after that as videos will move forward

play00:23

We will go up to day 100.

play00:25

We will raise the bar like anything

play00:27

We will be working on complex projects

play00:28

We will be working on things that are used in industry

play00:31

So too much of excitement and fun is gonna happen.

play00:34

Python is a dynamically typed

play00:35

Object oriented programming language

play00:37

Which was made by Guido van Russom in 1991

play00:40

Guido van Russom

play00:40

was watching a show named Monty Python's Circus

play00:43

On TV when he was working on this language.

play00:45

And he thought why not name it as Python.

play00:47

And since then its name is Python

play00:49

In this course, along with theory

play00:52

We will do lot of practice,

play00:53

Many exercises and quizzes are going to come in this.

play00:55

And many challenges are waiting for you guys.

play00:58

So I will enter on my computer button

play01:00

And I will introduce you to different and unique Python.

play01:04

So like this video right now,

play01:06

And by subscribing turn on the notification.

play01:08

So that you don't miss any day.

play01:10

And everyday you receive notification

play01:12

Because it is very easy to get lost in sea of YouTube.

play01:15

So everyone accept the 100 days code challenge.

play01:19

And in comment section write

play01:20

I accept 100 days of code challenge.

play01:32

So, here I am on this google chrome browser

play01:35

And I will tell you guys

play01:36

How to download and install Python.

play01:39

So as you will write Python

play01:41

Then you will come to python.org

play01:42

And as per your platform

play01:45

You will get the latest version available for download

play01:47

So you can see I am on mac os.

play01:49

So for mac owners 3.11

play01:52

It is giving that, so I will download it.

play01:55

until it is downloading

play01:56

You can download any of your favorite ide or vs code.

play02:00

To use Python in your computer

play02:02

But here I will use Replit

play02:05

And you guys can use replit

play02:08

This is a collaborative browser based IDE.

play02:10

I am using this because,

play02:12

Because I find it easy to use,

play02:15

And along with that,

play02:16

It is easy for me to share code with you guys

play02:19

So here I will sign in with my google account.

play02:23

And after that I will be redirected to the screen.

play02:26

So as you can see all my repl's are over here

play02:29

Replit basically gives you an online way of writing code.

play02:33

If your computer is not fast

play02:35

Or if you have problem compute wise

play02:38

Which means if your computer lags a lot,

play02:41

Then you just need a browser tab.

play02:43

And you can follow with me.

play02:45

And because I will use replit

play02:47

It will be easy for you guys to follow me.

play02:50

So quickly, over here I will go on myrepls

play02:53

Here I have already made some repls

play02:55

And by scrolling below,

play02:57

I will go to Python zero to job ready folder

play03:00

And this is the day 1 repl ok.

play03:03

so here as you can see,

play03:06

You can see my video here in floating pane.

play03:10

And here will be my content.

play03:13

And here I will write code.

play03:15

So I will write the console over here.

play03:17

Along with that the code I will show you,

play03:22

I will close this over here,

play03:24

I will write code,

play03:25

And here we are going to get the output of the code.

play03:27

So quickly I will make a file over here,

play03:30

So I will click here and open main.py

play03:34

Actually I want to main.py over here .

play03:36

So look how easy it is to use.

play03:39

Here will be tutorial.

play03:41

Here we will write code.

play03:42

Here there is going to be the output.

play03:44

And here will be my video.

play03:46

Which you can watch.

play03:48

Now, here I have added a demo video.

play03:50

Here you will get to see the day video.

play03:54

If you are thinking how I did it,

play03:56

So I will give a link in description,

play03:59

You will get to know how to do this thing.

play04:01

In case, if any teacher is watching this

play04:03

Now, lets quickly talk about Python.

play04:04

But before that,

play04:06

I would like to talk , what is programming?

play04:09

As you can see,

play04:10

Programming is a way to tell computers what to do?

play04:14

We are trying to tell computers,

play04:16

What to do? And we do it with the help of programming.

play04:19

If there is a calculator in your house

play04:20

So calculator is programmed

play04:22

In such a way, that we can tell it

play04:24

How much is 5+9

play04:26

Now, you will say 5+9 is 14.

play04:28

If I know, then why should I use calculator

play04:31

But how about 23453453 * 56456

play04:36

You can calculate it,

play04:37

But you can't be as fast as computer.

play04:39

So in such situations a good communication with computer

play04:43

Is very important

play04:44

So we use programming.

play04:46

In the way you and me talk in hindi

play04:48

You talk with your friend in English.

play04:50

You must be talking in spanish

play04:52

Or if you must be talking in any other language,

play04:55

To talk with computer

play04:57

We use programming languages.

play04:58

Like Python, c,c++,java

play05:02

There are many more programming languages in market

play05:04

But this course is going to be dedicated to Python.

play05:07

And this is because Python is very easy.

play05:10

According to me Python

play05:11

Is the easiest learned programming language.

play05:13

Because when you learn Python

play05:14

After that you start doing things,

play05:17

Then you have fun at a different level.

play05:19

What is Python? Dynamically typed.

play05:21

General purpose programming language

play05:22

Which support object oriented paradigm

play05:25

It also supports functional approach.

play05:27

If you don't know what is this?

play05:29

So we are going to learn it in this course.

play05:31

Now, it is interpreted.

play05:33

It is a high level programming language.

play05:34

And Guido van Russom started working on it in 1989

play05:38

Many people ask

play05:39

When was Python developed.

play05:43

So it was not one day or one year

play05:44

From 1989 over the period of years

play05:46

Guido van rossum created it.

play05:48

So many places you can see 1991

play05:51

And some places you may see 1992

play05:52

You also get to see 1989.

play05:54

But the truth is from 1989

play05:57

Over the period of years it was made.

play05:58

What are the features of Python?

play06:00

First thing that I will tell you

play06:01

It is simple. It is the most simple programming language.

play06:05

This is the best feature of Python which I like.

play06:08

And after that you can do anything with it.

play06:10

Platform is independent.

play06:12

Platform is independent and

play06:14

It means that,

play06:15

If you wrote code in windows

play06:18

Then you can run it on linux too.

play06:19

And if you wrote code in mac

play06:22

Then you can run it in windows too.

play06:24

You can run it on any platform.

play06:26

I am writing code here in my browser.

play06:28

Max able means I am using the replit platform

play06:31

But even if I write code in mac

play06:33

Then too it was easy for you to run it anywhere for you guys.

play06:39

It is an open source programming language.

play06:40

Most important thing, you don't need to pay to use Python.

play06:43

Which is amazing.

play06:44

And Python provides very big library support.

play06:47

So many people use this easy language.

play06:51

Because of this what happens?

play06:52

All people are working on some or the other project.

play06:56

And the project of all those people

play06:58

The code written by them

play07:00

They effort written by them

play07:02

Maybe somebody made one thing in 1 year

play07:04

And you get to use it for 1 min

play07:07

It is a very nice thing.

play07:08

If I talk about learning point of view.

play07:10

If I talk with error point of view

play07:12

Maybe the error you are getting today

play07:14

10 years ago maybe someone got the same

play07:16

And he may have found code for it.

play07:17

And has added to website like stackoverflow

play07:20

It will be very easy for you guys.

play07:22

It will be very easy for you get solution of that problem.

play07:27

Ok, Python works on a big library support.

play07:31

And after that integrating it with other programming languages

play07:34

Is very easy.

play07:35

It can be linked very easily to any language.

play07:39

After that this has some applications

play07:41

Which I have written over here

play07:42

you can work on database too.

play07:44

You can work on data science.

play07:45

You can work on machine learning.

play07:46

You can make web applications.

play07:48

With database

play07:49

Many serious and complex application can be made.

play07:51

And to increase your business

play07:54

Many complex mathematical operations

play07:57

You can do with the help of Python.

play07:58

Now, here I am using replit because

play08:00

Sharing code is very easy.

play08:03

Installing Python in local is also very easy.

play08:06

Simply on any platform

play08:09

Simply you can install it.

play08:12

Just like some game.

play08:14

And if you are on mac

play08:16

It is easy installation as you can see on computer screen.

play08:19

But if you are on windows

play08:20

So by installing Python

play08:22

Just pay attention to one thing

play08:24

If you are installing in your computer

play08:26

Path variable @Python 3. which ever version it is

play08:30

There is option as path

play08:32

Definitely check it.

play08:33

Because if you don't check it

play08:35

So maybe you won't be able to use Python through terminal.

play08:41

So if I open my terminal

play08:42

If you are on windows or anywhere

play08:44

Here I will write Python

play08:45

So look here it is written that

play08:47

Python not found.

play08:48

So we need to solve this problem too.

play08:50

If you are in linux or mac like me

play08:53

So if you will write Python

play08:54

Then you will definitely get to see this error.

play08:57

So if you will write Python 3,

play08:59

Then here you can see Python repl

play09:02

Repl's full form is Read-Evaluate-Print Loop

play09:05

And here you can use Python as a calculator.

play09:09

You can run commands like this.

play09:12

If you don't know what is this print statement

play09:15

Then we are going to learn.

play09:16

Over the period of days we are going to learn.

play09:18

Day by day, slowly slowly I want you to digest things.

play09:21

So if you want to come out of repl

play09:24

If you want to come out of this read evaluate print loop

play09:27

Then do exit

play09:29

And you will come out.

play09:30

But do you what I am going to do?

play09:33

I am going to use replit.

play09:35

And inside replit, all the file and

play09:40

Project we make is called repl by replit.

play09:42

And this repl name has arrived from here only.

play09:45

Read-Evaluate-Print Loop of Python

play09:47

Or in many programming languages it is there

play09:49

From there this is derived.

play09:51

So here if I write hello world,

play09:53

And after that if I click on run,

play09:55

So look it is this easy to work with.

play09:57

I would like to see its output over here.

play10:00

And why has the output not arrived here yet?

play10:02

It is here, hello world ok.

play10:04

Now here if I do print 7

play10:07

Or else 5 and run it over here

play10:09

Here it will run and after that

play10:11

I will be able to see 5 over here.

play10:13

So basically what is happening over here?

play10:14

I am writing code over here but

play10:16

But the code is getting executed.

play10:18

on replit servers.

play10:19

And I am able to see its output over here.

play10:21

In this, even if my computer is slow

play10:23

Then too I can use Python very easily.

play10:26

And I can make new files also over here.

play10:28

I can make new files . I can open new files,

play10:31

And here I can read this text.

play10:33

And I can watch this video.

play10:35

I can keep it wherever I want.

play10:36

Up down front back

play10:37

And if I don't want to watch the video and do practice

play10:40

You can make it very small

play10:42

Very tiny in size

play10:44

And keep it over here.

play10:46

Park it over here.

play10:47

And when you want to watch it increase the size.

play10:49

So you are going to have a good learning experience.

play10:51

So I would like to request you guys

play10:54

The official playlist of Python that I am going to make

play10:57

100 days of code playlist

play10:59

Definitely access it.

play11:00

Like the video and subscribe to the channel

play11:02

So that you don't miss any day.

play11:04

The journey of 100 days

play11:06

In that I don't want you to miss anything.

play11:09

Access the Python playlist.

play11:11

Bookmark it and save it.

play11:13

Next day I will meet you,

play11:14

In which we will talk about more good things.

play11:17

And our day 2 is going to be dedicated

play11:19

On a very interesting and fun thing.

play11:22

So wait for day2.

play11:23

And we will meet after that.

play11:25

This much only for this video guys.

play11:26

Thank you so much guys for watching this video.

play11:28

And I will see you next time.

Rate This

5.0 / 5 (0 votes)

الوسوم ذات الصلة
Python LearningCoding ChallengeJob Ready100 DaysOnline CourseWeb DevelopmentData ScienceMachine LearningGuido van RossumReplit IDE
هل تحتاج إلى تلخيص باللغة الإنجليزية؟