0% found this document useful (0 votes)
5 views28 pages

Transcript 1

The tutorial for the Complete Python Programming course at College Joe begins on February 15, with a special enrollment offer on February 13. The course covers Python fundamentals, including data types, object orientation, and practical coding exercises, culminating in creating mini-games. Students will also learn to install Python and Visual Studio Code, and will be guided through their first programming tasks.

Uploaded by

sylvieme20
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views28 pages

Transcript 1

The tutorial for the Complete Python Programming course at College Joe begins on February 15, with a special enrollment offer on February 13. The course covers Python fundamentals, including data types, object orientation, and practical coding exercises, culminating in creating mini-games. Students will also learn to install Python and Visual Studio Code, and will be guided through their first programming tasks.

Uploaded by

sylvieme20
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Hi everyone, the tutorial has started.

First an important announcement that our

College Joe's New Full Stack Web Development

batch of delta 4 its classes start

Happening from 15th February onwards

All the interested students

There is a special offer for everyone on 13th

If February is till 6:00 pm then the batch

You will find the link to enroll below.

Description will be found inside the box

From there we can check it out

Hi Everyone and Welcome to Apna College Today

Inside our tutorial, we

Complete end to end covering Python language

All our core and

We all have important concepts.

Will read in the form of these chapters i.e.

From very basic variable data types we can

Will start and go to the last object

Orientation in Python all the way

Topics we are going to cover and

In fact at the end we are also going to

Create some mini games that play with our Python

A little more understanding of language

If you do better then all our chapters will be

The concept of us must be there in all of them.


We will read many things together

gonna practice coding a lot

Everyone is going to solve the questions

Single Chapter र अन्दर और दु ष्ठ साहत साहत

Our class notes are slides

We also provide the link to download them below.

Now you can find it inside the description box

To start this tutorial

There is no pre-requisite at all

It doesn't matter if Python is your first

Before today we have language at all

Didn't coding or we already

Programming is done using someone else

Language and now we

[Link] practically

[Link]

Let's start with Python

tutorial's

Hi Coders and Welcome to The Complete

[Link] that could happen today

We don't have to write a single line of code

You come after completing the butt series.

We will be able to write good programs

Plus lots of programming like this

There are concepts that we have learned

and we will have applied to them now


Whenever we visit [Link]

Beginning of coding journey

And also all the series

There are slides, there are notes, there are their links for you.

Found in the description box below

We can go to our college website

and you can download those notes by going to

So let's start ours

[Link]

First of all we need [Link]

Cannot write with pen, correct way to write code

The right way to run it is that we

Write that inside your code editors and

Visual Studio Code is one of the best

Freely Available Editors Out There

That's why we'll be using VS Code

Now first of all we will see inside the installation

for [Link]

We can go to browser

If we want we will be able to follow it completely.

Can't click on this download button

So the downloads written above are there

After going to we have the option of Python

Will come, we will click on it and our

The Python download will start as soon as

Our download is complete.


If we want, we can double click on a file.

We can have a window like this

Will come in which we will click on run and

Our installation will start now

Before starting the installation,

There are two check boxes above the pass window

Which we always have to check in this

The first one is for admin privileges

which we will tick and the second is

Whatever we need to tick for [Link]

After ticking our Install Now

Click on End our installation

let's start

Will go after installation is complete

We will get setup as successful end

We can simply do this window

close now next we will download

are [Link]

sl downloads from here which we have yellow

button will appear to download our

Latest version will be coming soon

python's वर्जन को भी डाउनलोड कर सकते हैं

We are not able to follow the entire lecture.

There will be no problem if you download it

If we want, we can find it in our downloads.

You can save the package as soon as it is downloaded


We double click on your package will be

Will do and we have our install

Window will come up to install we can

After clicking on continue continue

we will forward then we have our

A window will appear asking you to enter the password.

In this we will enter our password and we

Are going to install the software and such

hee

[Link] pan3d version it

As soon as we enter we will have

Any currently installed version of Python

Yes, it will come printed so that it can be verified.

That's it, Python was successfully installed on our system.

This same command is installed inside

Will work on Mac also and this is the same

We can run the command inside Windows also

Now next we are going to install

Install Visual Studio Code on your system

So first of all you have to download it.

We will search the internet for download

vs code

So let us follow the first link that comes.

If you have to go, I will also tell you the site here.

c.v.

Download now it has many options


You are now on a Wiz machine windows7 8 10

11 But here you can according to your system

If you have a 64 bit system then which download

If you want to download 32 bit then which one to download?

Mostly people have 64 bit system.

If it happens then you can do it by clicking here

You can download if you

You can download or have it on Mac

So now you can download accordingly

whenever you download for viz

There are not many check boxes in between our

What should we do with all this?

All the check boxes have to be ticked like

Our Visual Studio code will tick only

It will be completely installed and now we

Now you can open for the first time

let's talk about what programming is

There are two majors within programming

components are involved i.e. a

We have my machine, this machine

Our laptop can also be ours

It can also be a computer and other things which

We have that code and we

What do we do by writing code to a machine?

give instructions to which we


program is called i.e. if I have to

Want to get something done from your computer using your laptop?

So I will give him instructions now

Hindi English to computer like us

Nepali, Marathi, I understand all these languages.

If she doesn't know then that's why we will teach her Python Java C+

JavaScript in languages like this

to get the work done

Now we can understand it like this

Let's say we went inside France.

If we are going into France then

There we will have to speak French if we

If we are going inside Nepal then there we

I will have to speak Nepali if I go to Maharashtra

I am going so I have to speak Marathi

Same thing happens if I talk to computer

If I have to do it then I need to understand the language of the computer.

That's why I have to talk about it

We use programming languages

The languages in which we talk to computers

Now we use many programming languages

Everything happens in programming languages

It can be java, it can also be c+

Javascript can also be done here

The programming language we are studying

We call it Python, that is, we


Whatever code you write, the computer will work.

to get work done with laptop

Basically to get the work done with your machine

All that code is in Python

It's going to happen but it's also a small

Now the machine has a twist, direct Hindi

English Marathi I don't understand all this

Computer can also understand Python directly

Don't know because Python is very easy

What is language? What is Java? What is C+? What is C?

What are the very simple languages which allow us

Age humans understand computers

Or does the machine understand the language Ro and One

Which means the machine only understands numbers.

How can one understand numbers even in numbers?

High voltage and low only row and one

In the form of voltage i.e. inside the machine

You will pass high current to him, that of the forest.

How will any current pass inside the end machine?

If it doesn't happen, he will treat it like a zero.

So basic electronics

That's why we have written our code in Python.

Wrote something that sounds exactly like English

But to explain that code to the machine

In between we have translators

Like if I go to France and I


If you don't know how to speak French, come along with me.

I will travel with a translator or guide

What will anyone do to my English or my

Will translate Hindi into French

Inside such computers which speak the language of 0 and

It is understood that the work of a translator is done.

that will take our python and translate it

That's why Python was written in machine language.

We call Python a high level language

If yes then the work of translators is high

Level language directly to low level

Languages or Machine Level Languages

Convert these inside our translator

Compilers can also be interpreters

Maybe interpreter inside python

Which happens to be our [Link]

Or to start with coding as a beginner

So if you want to start with Python for beginners,

If we want to do coding then we definitely need English.

Simple and easy to do as it looks

Understand is spoken second.

[Link]

Can't do it at machine level but

It is easy for humans to understand

now [Link]

Can run inside the system also


Using python-pip we can do many things

Different branches of programming

Can explore means use python

By doing this I can also go into my data science

meaning i can learn machine learning

I can learn AI as well as I

I can also do web development.

If I can create websites then the back end

It has a Python framework

We would be using it under the name Django.

are and

python's भी बना सकते हैं तो

Your first program inside python-pip

We talked a lot about how to code in Python

Python is a versatile language.

Is open source language and coding and machine

Talked about but is the code actually visible?

what do i mean when i say

If we write code in Python then that

To understand we are going to write

inside your first program or first code now

I once inside the system

But if you have newly installed then your

Only this start window is visible nearby

Now whatever things I want will happen

mac's पर भी कर सकते हैं तो र्ो र्ो चीर्ें


I am going to do the same thing here

Steps we have to follow

python's फाइल को क्लिक कर दूं गी तो मेरे

What happened? A text file has been created.

Meaning such as files inside our system

If it's ready, I'll cross it out here.

But this file symbol is

I click on Explorer Explorer

Will know which folder I am on

Here I can see that so far I

No folder has been created here.

That is to say, the file that is mine is

Where is it being saved and here is the explorer

But if you click again, it will also close.

It will happen, what am I going to do?

First I will save this file.

For I press Command S or Control

A You can click to save

Here I can give the name of the file in Save As.

I am going to name it first

Program Dpawa Now As Much As

We make us dot pava in their last

I have to write this first program of mine.

The name of the file is end dot pava kya hai dr

pava extension is like if i get text

If I want to create a file then I am Dr.


[Link]

I will start seeing the name of my file above.

Hai F Pvt. wow where is this file

There is a folder named Shraddha Khapra inside it.

a [Link]

Button will be visible Run Python File on this I

I will click as soon as I click

A window started appearing below me.

Pass in which I have this line hello world

It basically came printed as is.

what did i do a

If we start [Link]

If we write hello world then hello world

writing is a bit custom you are using java

Will write program in c+

We will start writing hello in the language also.

Now let's do what is necessary here with the world.

I don't want to write hello world.

I can also write my name here

If I wrote my name and again

If I run my code this time

My name is printed for me now here

But if I write my college here

I wrote my college and this too

can print then print my


When I got my college output, this is it.

my first program

inside python-pip which is its first

We wrote the program and printed it.

Hello world, now this is what is printed.

print

Here we will put these parentheses and double

If you put quotes then whatever you write inside

The same one on our screen

It will come printed if I want.

I am here after cutting off the whole hello world.

If I can write my college then full screen

Your college will be printed on

And what can you do in this way

You can write your name also, your name can also be written

End will be printed on the screen

This is what we call output in Python.

Output means what gets printed on my screen

By writing on it, it becomes visible to me.

If we understand the fundamentals of any code

What does any code do when it comes out?

Let's take any code I have written

Here we always write Python code.

If you have one then any code will work.

that he takes some input and I take some

Returns output such as if


If we understand with a very simple example, we

And the result that he will bring me is my

will be the output for

Inside I know that this

Our letters are going in this way.

Similarly, Python has its own

Character set means you can also

Use the extra characters

Can't mean you can't

Will you bring a letter in Punjabi and type it?

Will we try to do it or will we use Marathi

If you bring a letter then it will be different in this way

Letters of languages do not work in Python.

Python's fixed character set is

Inside english capital a to capital z we

We can use small a to small z we can use

Apart from that we can cry in letters

Using all the digits from one to nine

We can have special symbols

minus plus minus multiply divide

There are many percentages which are our special

Characters present on our keyboard

They are white, we can use them

We can also use spaces i.e. if

I need to give some blank space or tab

If we want to give space then we can use them


are and apart from that esca and ucode

All our data inside characters

Or are there literals, we can use them

We don't go into that much detail about it.

Will go basic which on our keyboard

The number of keys present and

The number of characters we use in English

do and use numbers, they all

all of [Link]

How to print the output inside this

Let's say I want to print it first.

If you want to get it done, I will write my name.

Print Shraddha is my name in this way

I can also get the sentence printed

I can write my age in the next line

If you are 23 then you can also change your name in this way.

Get it printed and inside the next line

You could have done this if you got your Edge printed.

Save and now run is on my screen

Shraddha is May was published first.

The name came out in print after that my age is

23 Now we consider these two things as one.

Can be printed inside the lines also

Meaning if this same output gives me the same above

If you want to print inside the line then this

I copy the part, what do I do?


I will do it here in the first line

I will give a comma and then the second line.

If I am going to write this, this is my first line.

This will be my second line print

But there's going to be a twist here

As soon as I do this, I will save it and run it.

Similarly, what happened this time, first these two

things were being printed on different lines

But this time both their sentences are the same

are printed above the line so when we

Write print statement and include comma

Multiple separated by comma

If you write things then they are all the same line.

But it is printed if I go to the next line.

But if I want to take it, I need a different print.

Now we have to use statements

Other than this

python3 and if I save and run this then

What happened in that case 23 on my screen

It will be printed and will come in the same manner.

I can get it printed 25 or 35 times

Let's save and run again this time.

Both 23 and 35 are printed for me.

Will go and along with this I will take the numbers

You can get it printed even after doing plus and minus.

i am 35 + 23 if i get it printed
If it is then I can save and run it.

I have 23 printed in the first line

It's like these two are in the second line.

Which will be printed and will come to me

Is 58 then differentiate different sum in this way

multiply divide perform all operations

[Link] is also allowed

Variable is a name in programming

Given to a memory location in a program

Now if I talk about math here then

We used to study a lot of things inside math

When I was young, I was considered a

Given a rectangle, its length is a.

is equal to and the other side is equal to b now

If I want to find the area of this rectangle

so what did i do i was a lard ba b

If I had to find its perimeter

So I used to do 2 * a + b right there

On the other hand if I am given a square

is then inside the square if one side is a

So I know I have another side too.

is going to happen and its area will be

That would be a multi ba a now it could be this

The square can be of any size, meaning a

The value can also be five then the value of a

The value of a can be 10 or even 50.


The value of a can also be 100.

Just like the math questions used to be

The length and breadth of the rectangle changes

According to that, I had a fixed

There was a formula in which I changed the values.

If I could, then this is the 'a' in math.

The one which is b, this one which is a, we all of them

Variable is called variable i.e. whose

The meaning of the variable changes if the value changes.

In English it is called very.

whose value can change like we

How variables are used in math

We can also use variables inside programming.

You can use like if I write here

If name is equal to Shraddha then I

What I did was create a variable named

There is a name and the value of faith in it.

I have stored it, so this is mine

This is the name of the variable and this is its value.

We always write variable is equal to

My value as I wrote age is equal

23 So I have age as my variable.

And its value has become 23 with me now.

It is possible that the age may increase after one year.

Is it obvious that the age will increase tomorrow?


What can I do if I become 24 instead of 23?

By making changes inside this age variable

I can say that after 2 years I went from 24 to 26.

So there should be changes within this edge variable

Will go and the new value will be stored here.

If I take the price then the price will go.

I priced this method within 25.99

If I can get it stored then this is my value

And this price becomes my variable for me

Will go whenever we write variable

means memory location i.e. if

If I imagine, my computer

The memory would look something like this

हमारे खाली प्लॉट होते हैं अब वेररएबल

Storing means those vacant plots

You picked up a plot and built a house on it.

made like this inside the computer

We can visualize our memory with

which has a lot of free space now like

Let's say I create a variable

I created a variable named inside which

No one cares if Shraddha is a value store.

A random memory stored inside the computer

Whose name I gave the name and its

I stored my value inside

Did Shraddha Value get the value stored?


When I got it stored, this was the place

It has been reserved in the memory.

It has been fixed that this variable here

Whatever has come and got stored, that is why when I

Name anytime in your python program

If I write, I will know the Python program.

I wonder which name I am talking about?

Name means value inside it

Shraddha is stored so if I get my

If you want to get your name printed then I simply

I can get my name printed if I want it printed.

What if I get it done and write my name in this manner?

Will be the value of faith for me

If it gets printed on my screen then

If tomorrow I change this name to something else

If I do it then next time I print my name.

If I get it done then the new value will be printed.

Same goes if I change the other variable

Declare if I wrote A = 23

If so, it means that there is something inside the memory.

is a random place where the edge is the name of that place

Now the value inside it is 23.

It has been stored and in the same manner if

I have written price equal 25.99 so

means there is a random place inside the memory

Whose name is price and inside it


value

25.99 and it has been stored, then in this way

My variables use memory

inside now tomorrow maybe i variable

If I change the value of i.e. if I change the age

If it is equal to 24 then what will be the age?

The variable will remain the same, only the value inside

That is 23, now this value will become 24.

Equal to So next time we talk about age

If we are then we will talk about this new value.

Must be those of my variable named age.

Once we code the variable is stored inside

Let's see that actually in the code

How to use so I used my python

The file has been created, now there is something inside this file

It's not written what am I going to do?

I am going to define variables meaning like

I will write name equal to and then I

I am going to write double codes double codes

Inside I wrote my name Next

In the line I will write age equal to then

I wrote my age in the next line

I am going to write price equals 25

99 So in this way this name is equal to

With devotion I created a variable named name.

created in which the value is stored


Age is my variable by doing Shraddha A = 23

Price = 25.99

The variable is here I can see

Inside this I stored a string

What did you get done? I told you, I told you this.

what is a string string

String is where you enter a word or

any sentence or mix of words

If multiple words are used in the program

If we want to write inside then we double it

Now we can write inside quotes if we want

Single quotes can also be used triple

You can also use quotes but usually by

Convention we are using double quotes

The things we put inside double quotes will be

If we write that she remains the same then

If I wrote Shraddha here then Shraddha

It will remain the same whether I think about it or not.

I removed Shraddha and removed these double quotes.

If I give it, it will be wrong, this is Python's

Meaning of Python's rules according to syntax

That's why the string will be wrong according to

To write a word sentence

If so, please write within double quotes.

Similarly, 23 is a normal number.

The number is 25.99 is a floating value


Meaning, here we have decimal place inside it.

Could have done 26.99 or could have done 26.2

Could have done even Rs 25.00 in this manner

Multiple variables I have added to my program

Now these variables have been defined inside

How to print Usually when we print

When we used to do it, I used to say that we are double

If you write codes and names, then one

Once we run this code we have written

Let's see what happened to me after running.

The name got printed on the screen but I

I don't want my name printed.

Shraddha had to get printed which was in the name

was stored inside the variable then if we double

You can write anything in quotes, right?

In print it should be as it is printed.

Will go write name here if I age

If I write and save it, get it printed.

So I will have only Edge printed but

I want to print the value of age.

Whenever I want to print a value

I remove these double codes and now

If I write edge and run this code

I got my Edge 23 printed right away

Now if I just write the name and

If you run then you will have my name Shraddha


It gets printed in the same way if I go here

But if I save the price and run, I have

Whenever my price is printed at 25.99

I have to use the value of the variable

So I simply write the name of the variable

There I double quote single quotes codes

Are not using because codes

What are strings used for now?

Let's combine all these variables into one

Print in sentence form

Meaning I am going to print my name is

Here I put colon and then

I will write commas and I am Shraddha.

If I want to print it on the same line then

I will write the name in the same way next

I will write my on the line

Age is calculus and after comma again I

We got the edge price printed here

let's skip this for now

Here is the output by saving once and running now.

I came in my name is colon this wala jo part

This one is a similar sentence.

That's how it got printed, after that I added a comma.

If you write the name inside the name then

It had value and it came to me in print.


In the same way my edge inside the next line

This is how it was printed and

After that, the value is 23.

If it comes printed in the form then this

We can use our variables in this way

can now inside your python code

One more thing about variables in math

Inside if I write a = b then it means

This means that a and b both are equal.

python3 is written it means I am on the right side

To pick up the value from and move it to the left side.

I am trying, I mean, 23 on the right.

The value is being stored inside the edge.

In the same way if I write here A = 25

So the value on the right side increases and the value on the left side

If it is stored towards the end, then it is called

The assignment rule is the sign of equal to two.

It happens that we call it assignment operator.

are or assignment is called being assigned

That means if the value gets stored then A = 25

It means to write 25 value value

Go and store it inside a variable named edge

Now there is one inside Python that I

Write the variable is equal to something.

Apart from that, if I give another one

I create a variable at, so inside this I create a


Can only assign value to variable

Meaning if I wrote edge 2 = equal edge

So it means whatever value is inside the edge

Now it will go and get stored inside Edge 2.

So if I print Edge 2 here

But let's remove this statement and

I will just print in the first line

edge to

I ran this in Age Two

Printed 25 This happened because edge

Now the value of edge was 25 stored inside

I assigned inside edge two so edge two

I reached the age of 25, so when I turned 2

When I got it printed, I had it on the screen.

25 printed and now inside Python

Some of the names of variables

There are rules, once you understand them

Rules for Identification

23 It is written that age is the name of my variable.

And its value is 23, so as many as we

Name the variables and write some of their rules.

which is the name of our variable

It can also contain upper case lower case letters

Digits can also come and underscore

can also come i.e. inside the name of the variable

I can use any letter from a to slz


Can do from capital a to capital z also

I can use any letter from Ro to Nine

I can use any digit till end

I can use underscore as well

But in the name of the variable I use percentage rate.

Cannot use symbols like this

The second rule says like its example

That I named my variable my variable

gave this variable underscore and gave

All of these variables are valid for print.

name is besides that which

Identification

If you read then the names of my functions will also be there.

And there are many other places where I can be named.

Things like variables have to be written

The name is there, we follow these rules

Let's do the second identification

Write variable or write variable one.

is valid but this thing is not valid

Because here the digit comes in the beginning

Gone digit can come later but

If you can never come to the start

Like variable one is valid and one variable

Is Not Valid Other Than Special Symbols

It's done, it's hashed, it's rated.

Percentage is done, dollar sign is done


Exclamation mark is done like this

Symbols Hum Identification

I name my variable this is my

python

Variable name too big in my python

Will be of variable, no error will occur in it

inside python but because we are good

We are programmers and whenever we write code

It is not only necessary that we

It is also important to write code that runs.

How beautiful does our code look?

How presentable and how easily

Other people can understand things by reading it

That's why a good programmer needs a good

The coder's identity is that his variables

Names should be simple, short and meaningful

That is, the name should be simple.

You might also like