Learning Basics #2

Basics of Python Programming Introduction to Python Programming for Beginners
11 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$49.99
List Price:  $69.99
You save:  $20
€45.89
List Price:  €64.25
You save:  €18.35
£39.47
List Price:  £55.26
You save:  £15.79
CA$68.07
List Price:  CA$95.30
You save:  CA$27.23
A$74.60
List Price:  A$104.44
You save:  A$29.84
S$67.28
List Price:  S$94.20
You save:  S$26.92
HK$390.05
List Price:  HK$546.10
You save:  HK$156.05
CHF 45.58
List Price:  CHF 63.82
You save:  CHF 18.23
NOK kr536.92
List Price:  NOK kr751.73
You save:  NOK kr214.81
DKK kr343.16
List Price:  DKK kr480.45
You save:  DKK kr137.29
NZ$81.48
List Price:  NZ$114.09
You save:  NZ$32.60
د.إ183.61
List Price:  د.إ257.07
You save:  د.إ73.46
৳5,823.25
List Price:  ৳8,153.02
You save:  ৳2,329.76
₹4,164.19
List Price:  ₹5,830.20
You save:  ₹1,666.01
RM234.32
List Price:  RM328.07
You save:  RM93.75
₦73,485.30
List Price:  ₦102,885.30
You save:  ₦29,400
₨13,851.69
List Price:  ₨19,393.48
You save:  ₨5,541.78
฿1,799.30
List Price:  ฿2,519.17
You save:  ฿719.86
₺1,611.84
List Price:  ₺2,256.71
You save:  ₺644.86
B$255.17
List Price:  B$357.27
You save:  B$102.09
R916.27
List Price:  R1,282.86
You save:  R366.58
Лв89.93
List Price:  Лв125.91
You save:  Лв35.97
₩67,705.95
List Price:  ₩94,793.75
You save:  ₩27,087.80
₪184.61
List Price:  ₪258.47
You save:  ₪73.85
₱2,891.92
List Price:  ₱4,048.92
You save:  ₱1,156.99
¥7,782.19
List Price:  ¥10,895.69
You save:  ¥3,113.50
MX$830.26
List Price:  MX$1,162.43
You save:  MX$332.17
QR181.35
List Price:  QR253.91
You save:  QR72.55
P673.81
List Price:  P943.39
You save:  P269.57
KSh6,489.45
List Price:  KSh9,085.75
You save:  KSh2,596.30
E£2,340.40
List Price:  E£3,276.75
You save:  E£936.34
ብር2,856.35
List Price:  ብር3,999.12
You save:  ብር1,142.76
Kz42,441.51
List Price:  Kz59,421.51
You save:  Kz16,980
CLP$44,715.94
List Price:  CLP$62,605.89
You save:  CLP$17,889.95
CN¥361.08
List Price:  CN¥505.55
You save:  CN¥144.46
RD$2,913
List Price:  RD$4,078.44
You save:  RD$1,165.43
DA6,730.70
List Price:  DA9,423.52
You save:  DA2,692.82
FJ$111.38
List Price:  FJ$155.95
You save:  FJ$44.56
Q386.36
List Price:  Q540.94
You save:  Q154.57
GY$10,404.04
List Price:  GY$14,566.49
You save:  GY$4,162.45
ISK kr6,889.99
List Price:  ISK kr9,646.55
You save:  ISK kr2,756.55
DH495.11
List Price:  DH693.20
You save:  DH198.08
L879.91
List Price:  L1,231.95
You save:  L352.03
ден2,826.97
List Price:  ден3,957.99
You save:  ден1,131.01
MOP$399.64
List Price:  MOP$559.54
You save:  MOP$159.89
N$909.80
List Price:  N$1,273.79
You save:  N$363.99
C$1,830.66
List Price:  C$2,563.07
You save:  C$732.41
रु6,629.71
List Price:  रु9,282.12
You save:  रु2,652.41
S/185.70
List Price:  S/260
You save:  S/74.29
K193.11
List Price:  K270.37
You save:  K77.26
SAR187.46
List Price:  SAR262.46
You save:  SAR75
ZK1,269.30
List Price:  ZK1,777.13
You save:  ZK507.82
L228.76
List Price:  L320.28
You save:  L91.52
Kč1,135.67
List Price:  Kč1,590.03
You save:  Kč454.36
Ft17,788.18
List Price:  Ft24,904.88
You save:  Ft7,116.69
SEK kr535.74
List Price:  SEK kr750.08
You save:  SEK kr214.33
ARS$44,071.35
List Price:  ARS$61,703.42
You save:  ARS$17,632.06
Bs343.60
List Price:  Bs481.07
You save:  Bs137.46
COP$190,320.33
List Price:  COP$266,463.69
You save:  COP$76,143.36
₡25,450.60
List Price:  ₡35,632.87
You save:  ₡10,182.27
L1,231.27
List Price:  L1,723.87
You save:  L492.60
₲372,600.80
List Price:  ₲521,670.94
You save:  ₲149,070.13
$U1,939.41
List Price:  $U2,715.34
You save:  $U775.92
zł195.86
List Price:  zł274.22
You save:  zł78.36
Already have an account? Log In

Transcript

Right friends, this is an emphasis on programming in Python. As we discussed that it's dot p wise the extension and we need to explore it with the very shell window of approach. The python shell window has a drop down menu with a prompt of greater greater greater three times greater than sign as prompt sign, and appears on the command line when new, the window and here we can type and even enter statements, or expressions for evaluation in the same way, probably as required. So it's a approach just like I used to have it in the toss. Remember, see prompt and a prompt and the prompt and all. Well on the other hand, the integrated development learning environment, talks about editing through menu options scrolling back with previous commands like cut copy, Paste.

The shell also has many items like File, Edit shell debug options, Windows and even help and approaches in an easy way of modulation and once the program is saved, it can be executed either by clicking run module or even using the function keys and f5. Here in this case, if there are no errors of the, of course you get to execute it. When we talk about the first program development program clicking on File select new file. It opens with a new text editor where you can write the program like for example hash prints the Hello World Hello Python print bracket open within quotes Hello Python quote close bracket close. And that's the Hello Python is executed by pressing the Enter key in this case and or probably press f5 or click on Run module. In the program the lines appear.

Well hash is the command line of comment, which includes a known execution command. And this will help not only to improve the readability of the program but provides a documentation of the logic of the program. So after execution, of course, you get a Hello Python written on the screen and that's the replication right. So something to talk about the variables and the operators in Python we have the approach of variables as the names given to data where we need to store and manipulate the values. For example, a is equal to 10. So variable e indicates a memory location by the term a where the value the constant 10 gets stored in the variable, the memory location right.

So of course, every time we declare a variable some initial value has to be given to it. And we can also define multiple variable builds like that of the data type followed by the value right. Accordingly as in other languages, the variable names are case sensitive. Normally, two conventions are used in Python to denote variables like probably the case notation or underscores is an approach where in the deal with this, and to run the program, we press f5 or the run module, and we get the executed result. We talk about the basic operators in our program, or the script we write in Python, which implicates to addition, subtraction, multiplication and division. Very simple operation like another languages for those of you who are using the other languages as well.

So it's pretty easy for you to learn Python. We have float division, we have modulus operator that is the person days given the domain exponent that is seven to the power of two, if I'm talking about x double asterik y. So, the approach talks about additional assignment operators like plus is equal or minus is equal equal into the variable plus two. So, the operators are used to perform operations on values and variables. They also used to manipulate individual items right and return a result. So the data items are referred to as reference or arguments to the point of approach and are represented as keywords or special characters, which cannot be used as variable names.

So the operators are arithmetic operators, the assignment operators, relational or comparison operators, logical operators, identity operators, bitwise operators and the membership operators. So all income with definition as We have arithmetic operators using arithmetic calculations like that of addition, subtraction, multiplication, division, modulus, exponent, etc. And of course, there are various methods for automatic calculation in Python, like the views of the function of calculus calculation. And of course, if you write print X plus Y and X being 10 by being 20, of course, we get 30. So, that's the approach like any other programming languages, then of course, the comparison operators talk about the comparative analysis of values with equal not equal not equal to less than, greater than, and other formats. So this is the likewise we can try comparison operators like x is less than y x is w equals y, x exponential equal line that is not equal to BI.

Accordingly, we can use it then of course we have assignment operators. These are used for assigning the values of right operating to the left operand and various other assignments like that have plus equal minus equal multiplication equals equal. So if right num one is equal to 10, num two is equal to 20. print line one number one, not two. So that's the direct way of printing values and incrementing it to the very process right. So this way we can help out in learning about the compound statement operators are also there, where we can add, subtract, multiply right operate to the left and assign addition or any other manipulation in that format. Then we have the logical operators like that have not and for very well like any other computer programming language.

So here we talk about the logical operators in Python, using the condition statements, which may be true or false logic Operators talk about and or not for logical operators, the condition supplied, manipulate, and operator returning a true value in both the operates a true OR operator, it takes a clock, well, or operator returns the true value if either of the two operands is true and NOT operator returns true for print is false. So that's what we look at. Then, of course, the membership operators which talk about in or not in. And there are two membership operators that are used in Python. And here we talk about these operators test for the membership in a sequence, such as lists, strings, or duck lists, or turtles, we call it and that's what is the approach that if in the list, if x enlist, we print something else, we print something else.

So that's it. conditional operator being executed then of course, we have identity operators to compare the memory location of two objects, because you know, Python is an object oriented programming language so they learn about objects as well. The two identity operators used in Python are is and is not. So operator is returns true if two variables point the same object or false otherwise, whereas the operator is not, returns false if two variables point the same object and true otherwise falling operators are in a decreasing order of precedence, talking about the same identity. And of course we have operands in the decreasing order of precedence meaning exponent, multiplication, division, floor division, modules, addition subtraction comparison, assignment operators, identity operators, members, operators and above all the logical operators do come as a functional format. We need to remember why programming and Python about operators we need to declare the value for the variables being used when use the operator is the next we use the operator is not and run the code to get to know about the applications.

The next very important thing is the operator precedence right it determines which operator needs to be evaluated first. And in order to avoid confusion in values, the precedents operators are necessary and hence we talk about the very precedence order I discussed just a while ago. So there are keywords Python other reserved words in Python and should be used as variable constant cannot be used as a variable constant of course they are defined Words resolvers and not even be used as an identifier or a variable name. And we need to take note of these keywords, not to use them and otherwise we get runtime errors while executing the program. So tomorrow like and break continue, Dell ELLs exec for global import is not pass, raise, try with assert class def, LS, except Finally, from if n lambda or Brent, return y and E. So, these are the reserved words.

You can even Google it to find out better, right. So, we'll switch over to the next part of the program. Next part of the session with more of approaches on learning by 10 in the best of the possibilities stick Good bye bye

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.