Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Summary python

Rating
-
Sold
-
Pages
2
Uploaded on
20-03-2023
Written in
2022/2023

Summary of 2 pages for the course coding at coding (python learning)

Institution
Course

Content preview

Python is a programming language and a binary format language. It is the language
which computer understands is binary code which zeros and ones now it is not
actually possible right of course so what you have to do is use a language which
will which both will understand and of course do we so do we. Python is one of the
easiest programming languages in the world right so what I will do is I would say
two plus three this is the simplest task you can do on Python. When you subtract
two numbers we argue that number right and specifically this are integer numbers
right we all use integers but then when you divide a number it is giving you a
point value now which is also correct float numbers. You can have multiple
operations but then we have to follow grommet right if you say 8 plus 9 and then
subtract you forgot to type 10 there it will give you an error which is invalid
syntax and that 's why you need to follow the grammar as well.


We have to use a special symbol here which is modulus and we 'll say 3 you can see
we got 1 which is a remainder so when is a 10 more than 3 you will get a limiter
which is 1 okay this works yay now you know all the operators right now what else
we can do here? If you observe here we have single code as a starting one and then
we also have a single quote here so that means that is one string and then this
thing which is s laptop it is not as a part of that single code that 's what that
that's where the problem starts so you can not simply have single quote anywhere
right so how do you solve this problem? We have two solutions the first one is you
in stop using single quote you can use double quotes example. Problem starts so
what you will do now because if I say enter you got invalid syntax in that case we
will say single quote navin's and then in double quotes will say laptop. Problem is
with this s right this s is coming before a single quote so you have to tell your
Python hey Python can you just skip that special meeting of that single quote and
the way you do that is by giving a slash.


In this video we have only talked about how can we use certain operators and then
playing with printf in the next video we are going to talk about how to use
variables now. The next video will show how to play with variables in Python Devin
20 talks about what is variable in Python. What is variable so basically variable
is a container where you can put your values. The term simply means you can change
the value can be changed here. In assignment what we do is we have a variable name
equal to our value so we are assigning to to X. What is variable it 's a box but it
can have a value now do we need to define the type of the variable you do n't need
to so the moment I assign a value it you can it automatically takes whatever value
you are assigning so in this case it is integer now that let 's do this thing what
if I say X and enter it will print the value of x now is 9 okay so we can justify
that what has variables right. YouTube is a string of characters that means even if
I want to fetch one character it should be paper we should be able to do that right
and yes we can do that. YouTube has seven letters or seven characters if you break
it down it will create an array or you can say collection of characters the
numbering starts with zero.If I specify only one and colon if I do n't specify
ending what happens in this case it will start with 1 and it will come it will go
till the end okay that has well so if you don't specify the ending part it will end
at the last one which is available so it will not give you any other. Python has
inbuilt functions available in Python and one of them is left Len so you can see we
got 11 characters so yeah that 's it that's it from this video we have talked about
different variables assignments and stuff so I hope you are enjoying my session
Ivan jetty shows how to work with variables in Python. He explains how to use a
simple list of values to assign values. The list is a list of numbers, strings and
numbers. He shows how simple it is to simply type nums and you've got the value you
can see. Negative numbers can be used in C C C++ Java. Java has object area in
Java. Python is already thinking about Python this is we have so we have a list
where you can have different types of different types. If you want to print
something in between and then till the end like remember in stringers also we have

Written for

Course

Document information

Uploaded on
March 20, 2023
Number of pages
2
Written in
2022/2023
Type
SUMMARY

Subjects

$10.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
amirtharengavathi

Get to know the seller

Seller avatar
amirtharengavathi
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
2
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions