Learn Ultimate Python-3 GUI Course With Tkinter , Qt and PyGTK | Funky Programmer | Skillshare
Search

Playback Speed


  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x

Learn Ultimate Python-3 GUI Course With Tkinter , Qt and PyGTK

teacher avatar Funky Programmer, Invest in yourself : Teaching the Next L

Watch this class and thousands more

Get unlimited access to every class
Taught by industry leaders & working professionals
Topics include illustration, design, photography, and more

Watch this class and thousands more

Get unlimited access to every class
Taught by industry leaders & working professionals
Topics include illustration, design, photography, and more

Lessons in This Class

    • 1.

      1 Course Introduction

      3:18

    • 2.

      2 Installing Python

      1:49

    • 3.

      Python Basic Syntax

      4:58

    • 4.

      Python Variable Types

      12:28

    • 5.

      Python Basic Operators

      20:24

    • 6.

      Python Decision Making

      14:10

    • 7.

      Python Loops

      10:04

    • 8.

      Python Lists

      8:45

    • 9.

      Python Tuples

      7:32

    • 10.

      Python Dictionary

      4:54

    • 11.

      Python Date & Time

      7:16

    • 12.

      Python Functions

      12:01

    • 13.

      Python Files I/O

      10:45

    • 14.

      Python Exceptions

      13:08

    • 15.

      What is Tkinter

      2:30

    • 16.

      tkinter Button

      16:03

    • 17.

      tkinter Frame

      5:58

    • 18.

      tkinter Canvas

      12:56

    • 19.

      tkinter Checkbutton

      12:33

    • 20.

      tkinter Entry

      7:17

    • 21.

      tkinter Label

      8:21

    • 22.

      tkinter Listbox

      5:39

    • 23.

      tkinter Radiobutton

      4:27

    • 24.

      tkinter Scrollbar

      7:19

    • 25.

      tkinter Scale

      2:45

    • 26.

      tkinter Toplevel

      8:06

    • 27.

      tkinter Spinbox

      6:27

  • --
  • Beginner level
  • Intermediate level
  • Advanced level
  • All levels

Community Generated

The level is determined by a majority opinion of students who have reviewed this class. The teacher's recommendation is shown until at least 5 student responses are collected.

107

Students

--

Project

About This Class

Build Python GUI Applications.All you need to know about Tkinter PYQT PYGTK & QT in Python & Create real world projects!

Python is a dynamic modern object -oriented programming language. In this Tkinter Ultimate class you will learn how to build Cross-Platform, Robust, Internet Enabled Python GUI Applications using Python and Tkinter. Our course provides you exactly what the title describes, practical and con-generous way. We help you to Clinch the fundamentals of Tkinter and python-3 with live coding lectures, real life practical examples, projects and quizzes, moving step by step through beginner and into advance concepts. getting you to the point where you are able to confidently create your own GUI's app, to apply the foundations of python into real life projects that users can fully interact with.

  • It is easy to learn and can be used to do a lot of things both big and small. Python is what is referred to as a high-level language.

  • Python is used in the industry for things like embedded software, web development, desktop applications, and even mobile apps!

  • SQL-Lite allows your applications to become even more powerful by storing, retrieving, and filtering through large data sets easily.

The Course Curriculum You will cover?

  1. Introduction to the Course

    • Course Walkthrough

    • Installing Python

    • Installing Pycharm

    • Whats New In Python 3

  2. Learn About Basics of Python

    • Python Basic Syntax

    • Python Variable Types

    • Python Basic Operators

    • Python Decision Making

    • Python Loops

    • Python Numbers

    • Python Strings

    • Python Lists

    • Python Tuples

    • Python Dictionary

    • Python Date & Time

    • Python Functions

    • Python Placeholder

    • Python Files I/O

    • Python Exceptions

    • Python Statements Control

    • Python Classes/Objects

  3. Introduction To Tkinter

    • What is Tkinter

  4. Basic Widgets of Tkinter

    • tkinter Button

    • tkinter Frame

    • tkinter Canvas

    • tkinter Checkbutton

    • tkinter Entry

    • tkinter Label

    • tkinter Listbox

  5. Beyond The Basics

    • tkinter Radiobutton

    • tkinter Scrollbar

    • tkinter Scale

    • tkinter Toplevel

    • tkinter Spinbox

  6. Advanced Widgets Of Thinter

    • tkinter LabelFrame

    • tkinter tkMessageBox

    • tkinter PanedWindow

    • tkinter Text

    • tkinter Menubutton

    • tkinter Menu

    • tkinter Message

    • tkinter Bitmap

    • tkinter Cursor

    • tkinter Button Options

    • tkinter Slider

    • tkinter Progressbar

    • tkinter Panedwindow

    • tkinter Shortcut in Keyboard

    • tkinter Button with Image

    • tkinter Button Call-Back

    • tkinter Image

    • tkinter Combobox

    • tkinter Dropdown Menu

  7. Geometry Managers

    • What is Geometry Managers

    • Pack Geometry Managers

    • Grid Geometry Managers

    • Place Geometry Managers

  8. SQLite3 Database

    • Install SQLite

    • Install SQLiteCreating Table for Database

    • Selecting and Displaying the Data

  9. Kick start Py-Qt Widgets Toolkit

    • Introduction to the PyQt

    • Introduction to the PyQtRun a PyQt Hello World Program or GUI application

    • Overview of the Major Classes Concept in PyQt

    • Kick start PyQt Using the Qt Designer

    • GUI based Events handling with PyQt Signals & Slots

  10. Kick Start with Py-Qt Basics Widgets

    • PyQt - QLineEdit Widget

    • PyQt - QPushButton Widget

    • PyQt - QRadioButton Widget

    • PyQt - QCheckBox Widget

    • PyQt - QComboBox Widget

    • PyQt - QToolBar Widget

    • PyQt - QStatusBar Widget

    • PyQt - QList Widget

    • PyQt - Drag & Drop

  11. Kick start with PyGTK

    • Introduction to the PyGTK

    • Setup the PyGTK Environment

    • Run a PyGTK GUI based Hello World Program

    • Setting up the Icon with help of PyGTK

    • Making Buttons with PyGTK

    • Setting up the PyGTK Tooltip on Button widget

    • Creating the simple Menus in PyGTK

  12. Project X-1 Text Editor

    • Create Text Editor

    • Project Execution

  13. Project X-2 Login Application

    • Import Libraries

    • Create Signup Functionalities

    • Create Login Functionalities

    • Create Check Login Functionalities

    • Create Delete User Functionalities

    • Project Execution

  14. Project X-3 Account Management System

    • Create Front-End of Project

    • Create Back-End of Project

    • Project Execution

    • Project X-4 Feet to Meter Converter

    • Feet to Meters Converter

The Python coding language integrates well with other platforms – and runs on virtually all modern devices. If you’re new to coding, you can easily learn the basics in this fast and powerful coding environment. If you have experience with other computer languages, you’ll find Python simple and straightforward. This OSI-approved open-source language allows free use and distribution – even commercial distribution.

When and how do I start a career as a Python programmer?

In an independent third-party survey, it has been revealed that the Python programming language is currently the most popular language for data scientists worldwide. This claim is substantiated by the Institute of Electrical and Electronic Engineers, which tracks programming languages by popularity. According to them, Python is the second most popular programming language this year for development on the web after Java.

Why you need this course?

Coming to hold with Tkinter Programming Which isn’t easy without right resources. On your learning to create your first GUI can be quite confusing, difficult and frustrating. I've been through the process myself, and with a significant investment of time, energy and learning from my mistakes I have become a proficient Tkinter developer. My motivation is that, if effectively understood and understood, how many people will be able to master this important instrument of the pastor. That's why I have prepared this course.

Python Job Profiles

  • Software Engineer

  • Research Analyst

  • Data Analyst

  • Data Scientist

  • Software Developer

  • Python Salary

The median total pays for Python jobs in  United States is $99k-110k for a professional with one year of experience.Below are graphs depicting average Python salary by city.

The first chart depicts average salary for a Python professional with one year of experience and the second chart depicts the average salaries by years of experience.

Take this course today and learn the skills you need to rub shoulders with today’s tech industry giants. Have fun, create and control intriguing and interactive Python GUIs, and enjoy a bright future! Best of Luck

Who this course is for:

  • If you are a beginner programmer and want to learn more about python, then this course is probably for you.
  • Programmers who have a reasonable understanding of Python, and are ready to take their skills to new levels.
  • Finally, this course is for anyone who wants to build desktop apps with Python!

Meet Your Teacher

Teacher Profile Image

Funky Programmer

Invest in yourself : Teaching the Next L

Teacher

Welcome! to the next level of programming courses. Funky Programmer creates and distributes high quality technology training content.

My aim to teach technology the right way but at the same time putting emphasis on each of our students. I have professional team of trainers for Web technologies and other programming languages.My courses will help you gain real world skills and knowledge and change your life today!

I teaching focuses on conveying the most relevant skills that you can use to build your portfolio and get real, hands-on technical experience geared towards landing you your dream tech industry job.

I believe in Extend Technology over a large or increasing area.

Build respectful relationships for all students

Create c... See full profile

Level: All Levels

Class Ratings

Expectations Met?
    Exceeded!
  • 0%
  • Yes
  • 0%
  • Somewhat
  • 0%
  • Not really
  • 0%

Why Join Skillshare?

Take award-winning Skillshare Original Classes

Each class has short lessons, hands-on projects

Your membership supports Skillshare teachers

Learn From Anywhere

Take classes on the go with the Skillshare app. Stream or download to watch on the plane, the subway, or wherever you learn best.

Transcripts

1. 1 Course Introduction: Hey, it's funky program are here and your warm welcome to learn alchemic Python GUI courts get Tkinter quit and gt gain. Let us see the interruption of the core discourse is consist of 12 hour plus Radio course with coding exercises. You will get enrolled in this course right now and get lifetime access. You can access your course anywhere. Anytime. You're one click in this course. Firstly, we will see the basics of Python programming language. Then you can see Python Tkinter. After Tkinter, we will see that Python quit. Or you may say that QD after 2T, you'll go to pi, Judy, Kay, and Aguilar. I am going to show you that how you can create a real-life project with the help of pike cutie, add Python, Tkinter, the Nelson Mandela said that the education is the most powerful weapon which you can use to change the world. And let's just be the agenda of the core. Firstly, we will cover the Python basics. Then we will cover Python TkInter. After the counter, we will go into our Python query and then we will cover Python pi GTK. And at last we will learn about the project base bite on. This is the outline of the course. Fasting even learn about the basics of the Python. Inside the basic, we will learn about the basic semantics, Python variables and type basic operators, decision-making in Python, loops in Python, list, which is a basic data structure in Python. Then we'll learn about the tuples in Python and much more. After this, we will learn about the Python Tkinter. Inside the Tkinter, we will learn about the Tkinter frame, counter button. King took Chen button Tkinter entry characters, pinball, Tkinter pan window, and much more. After kingdom, we will learn about by Q T. Or you may say that this is quite inside the acquit. You will learn about Quit designer, which is R, to design your graphical user interface. Then after that, you will learn about signals and slogged and how we can create the signals and slots with the help of pi, quit. After that, we will see the absolute positioning in the quid and q push buttons. Onto the push button will go to the message box and much more after learning, credit will go to pi GTK, where we learn about pi G to enable. Then we will learn about pi GTK buttons, pie GDP entry, pi GTK image, pie GDP guy comes and much more. So what are you waiting for? Take this 12 hour plus video courses, the lifetime access and the coding exercises. You can also get the assignments and the quizzes as well. If you do not like the core, there is a policy of 30 days money-back guarantee. Take discourse today and start your career in Python. 2. 2 Installing Python: Hey guys, welcome to this lecture. In this lecture we are going to see that how we get installed, our Python IDLE's, we did a very simple procedure that we are installing the Python IDE. For that purpose, you just open any browser and just search by Tom dot ORG. After searching, you will find the window like that. And you just click on Python here, which is a link of python.org. You will find the Python website here. In this website you will find about as TAB downloads, documentations, community successes, stories, news and events. We just click on Downloads managers click on Python, 3.8.1, which is the latest version of Python. Ideally, you just simply click on that and you will find the downloaded file here. I just click on save file right here, and save this file into your saved folder. Simply I just click on save and my file is saving right here. You can also read the documentation of the Python as well, which is 3 X document and 2 x documents as well. After the documentation, you will find the Python community and you will hear find the biotin jobs as well. Now we just go to our folder that where we are, download our Python. Ideally, I just opened this Python IDE Ellie, and I just click on install. Now I've already installed Python 3.8. So simply I just click on that and the Python id l is installing right? Now, this is a very simple step that you can install your Python ID LTE or a python interpreter up. So you understand now, if you're not, please let me know and thanks for watching this lecture. 3. Python Basic Syntax: Hey guys, welcome to the first coding lecture of the Python programming language. In this lecture we are going to talking about the basic syntax of the Python programming language. Python was designed to be a highly readable language. The context of Python programming language is a set of rules that defines how our Python program will be. Return. The term semantics is referred to a set of rules and principles that describes the structure of a language. The Python syntax defined all the set of rules that are used to create the sentence in biotin programming. For example, if you want to learn English language, then you need to learn the grammar of the language 4's favor the case like Python programming language or any of the programming language. If you want to learn, then you need to learn the basic syntax of that programming language. Hope so you understand now with this concept, before you starting and writing your first Python program, you have gotten to learn the basics of that programming language. We will walk you through that Python basic syntax in this lecture that will help you as a building block of your Python programming carrier. First, in this lecture, we are totally focused on the Python forced program or any of the language fourth Program, when you are just new to the programming language. So there is a program like helloworld program. So we are running dad program right here for writing the Python program. How to types of Python programming writing 4s1 is interactive mode, and the other one is, is script mode. The interactive more where you write a Python program and executed like as you can see on your screen, there is an compiler. You can see the textbox right here and the runnable code like this one. This is a simple card interactive mode. So we have interactions with our graphical user interface like our GUI. But what is the script mode is clipped mode is where you are Execute and only already saved Python or where you already saved bioethanol file and you just, you just need to run that file only. This is simply called descript mode. Let us just first start or Python program. Here we how the Python IDE at the basic level. You do not need the PY charm ID. But I hell, and we will work on that. And I just run your first program on Python ID LE, Also. This is actually the slip mode, okay? I just run that this is a new file. Here. I just write that rent and helloworld rises closest code here, trying to save this with basic dot p y. So this is basic dark PY. I just saved this with extension right here, and I just run this core. As you can see, that this is a shell programming and my Python program is working smoothly. Now I just run it as a module. So run as a module mean it will run and take this file. Firstly, it will only debug this file. You can see it will only the debug this file with Python shell. Now we go to our Python programming language, but we are just using our IDE is BY Chomp. Now Harris write print and hello word, save this code. Run, run as a basic scientist. And you can see I just get the main output right here. This is our printing function. So printf function is anything that you are writing or that you are right within the print, that you will get the output like this one. In any programming language like C plus plus, you can write CO2 getting the user output. Here, we need print functions to get the string output like here. This is a simple program. What I am just writing in Python IDE, NPY charm. Hopefully you understand now with the, with this concept of the Python programming language that the print function is simply used for getting the output. This is a built-in functions which come with the Python library. Hopefully you understand now, if you are any problem regarding to this lecture, please let me know and thanks for watching this lecture. 4. Python Variable Types: Welcome to this lecture. And in this lecture we are going to talking about the data types and variables in Python. You have programmed low-level languages like C or C plus plus or other similar programming languages. Therefore, you might think, you know already ineffable the datatypes and the variables. You know a lot things right? But not enough for the Python. So it's worth to go on this lecture about the different types and the variables in Python. This is a dodgy different in the way Python and CDs with variables. Therefore. Or there are the integers, floating point numbers and strings and many more. But the things not seem as C or C plus plus. If you want to use lists or associative arrays in C, for example, you have to ensure that the data type, list or associate they are forming stretch. Here you will design the memory structures and the allocations of the memory. You will have to implement the necessary search and access mattered as Python provides a powerful data structure or powerful data types like lists and associate do add is versus card, dictionary in Python as a genuine part of the programming language, let us turn to the concept of the variables in Python. Before starting the variables, we just need to know that what is the variable exactly? As the name implies. A variable is something which can change. Or a variable is a way of referring to a memory location used by a computer program. In many programming languages, a variable is a symbolic name of physical location. This memory location contain the values like numbers, texts, or more complicated types. We can use this variable to tell the computer to save some data in their location or to retrieve some data from dislocation. Let us see some of the diagrammatical example. Consider that this is our box and this is our box. B as a variable can see as a container or some say it is pigeonhole to store certain values. When the program is running, the variables are accessed and some Pam change. For example, a new value will be assigned to a variable. So the old value will be the change beheld. Said so far involve the variable bet best fits the way variables are implemented in C or C plus plus or java, variable names held to be declared in. These languages before they can be used, like here. Like here in coding example, we just use variables like integer x or and digital wire. Or here you see, this is our boxes. So I just write that this is a integer R3 and this is B, and uses clothes and digital with a semicolon. Certain declarations makes sure that the program rewards the memory for two variables with the name a and B. Or you may say this is the extra y or b or c. You can set any of the name to these variables. The variable name is Stan, for them memory locations. It's like the two empty boxes like here. You can see this is box a and this is a box B. You can see on your screen on the right side, these shoe boxes are liberal with a and B, like deer. Here we have the two empty boxes as well. Now just turn to putting the value and dude up boxes. Here. I just put the value 50, and here I just put the value 16. You can see for integer, i just bought value which is 54. Just put the value as 16. And the way you assign the values to the variable is nearly the same in all programming languages. And the most cases, we use integer n, which is equal to 50, or b which is equal to 50. So the value on the right side you can see on your screen will be saved in there. Variable limb. On the left side like here, you can see in these values. So we will assign the value 52 integer a and value 62 integer b. So we can see that the two numbers are physically saved in the memory, which correspond to the two shoe boxes or two empty boxes shown on your screen, lets us see beheld the value chain right here of the y, which is equal to 70. So we think that it is easy to understand that what happens here, we assign new values to one of the variables, which is the value is or D. Hope so you understand now. So we have seen that our shoe boxes, how's the empty lake here? I just remove this value and our new value here is 70. So we have seen now that in this language like C or C plus plus or Java or Python, every variable has a must, or every variable has n, must have a unique data type. For example, if a variable is of type integer, surely the integer can be saved in the variable of the duration of the program. And those programming languages, every variables has to be declared before it can be used. Declaring a variable means binding it to our datatype. Let us see now that how the variables are worked in Python programming languages lake, it is a lot easier in Python that there is no declaration of the variables required by Tn. Remember that it is not even possible. If there is a need of variables. You think often name and start using it as a variable. This is very simple, like discord is for C plus plus or Java programming language. Now we just write a chord of the Python programming language that here I just read it. I, which is equal to 42. So what does that mean that i which is equal to 42. So by default, Python language, consider this variable i and the value of this variable 42 is taken by the integer because this is simply the value which is 42 if we write 42. So by refile, Python will take this value as the floor. Or if we write that i, which is equal to, or we just write a or B or C which is equal to. So that will take as corrector. So this is taken by a biotin, might refer here we don't need of declarations in Python. Here, I just remove this all chord and we just turn to our Python coding example. And we will see that how by Tonnies taking the variables and how these variables work in Python. So I just remove this and here I just write integer which is equal to 40 and digital i1 is equal to 40. So there is no need of declaration of this moderate here. Then I just write that y which is equal to 50, which is, I just write here, this is Python. So Zed is taken by a string right here. Our first data type, you can see 50. Our first data type is integer datatype. So this data type is integer, which is taken by default as the Python programming language. Here you can see a new thing, that data type integer. And here I said the hash sign to this sign is for setting the comments in Python. Comments are very much important in any programming languages. Like disease. The simple overview to the programmer, that word up programmer did in this land here. Writing the three land code only if you working on a big project, like there are 40 thousand LAN or one lead lines. So you don't need or so you don't remember about that. Where do you work on the module and why this molecule is working? So the comments give us w1 knowledge about the concept of our program. Let us come back to our topic. Here we have the data type of integer. Then in line number two we have the data type of floored and add the last vehicle, the datatype of string up. So you understand now, because these three data types are taken by default, Python programming language vent, Python execute an assignment like i, which is equal to 40. I will do it the right side of the assignments and recognize that it's corresponding the integer number only which is 40. It creates an object of the Integer class to save the data if you want to have a better understanding of objects and classes. So stay connected with this course. We will learn about the object and the classes in next upcoming lectures. This is come back to our program and run our Python variable program. How we run our this variable, which is the name of i1, is equal to the value of this variable is 40. Here I just bring i. You can see here this programming languages like C or C plus plus, we are simply writing the code and getting more output. I just run this score. So variable. So you can see here this programming language that runs us 40 here, a point that what is the print? So print is a function which is come built-in with the Python library. And this is for the output of the valleys lake here, as you can see, I just write here print, which is z. So that will give us the string value. Also, you can see here, this is the Python 40 novae. Just go to another example. So this is Brent. And why? So that will give us also a float values. You can see here we have the float values also right here, which is four, d 30, and at the last float value, which is 50. This is a simple concept of the variables that how variable work and what is the variable exactly. Hopefully you understand now with this variable concept and a datatype concept of integer, floor and destroying the hell and the types of data. And other data types like v, how, lake, corrector, Boolean, and many more. So here in this course we will do totally focused on the integer floors and a string and a character also. Hope so. You understand now with this concept of the variables and the data type. If any problem regarding to this lecture, please let me know and thanks for watching this lecture. 5. Python Basic Operators: Welcome to this lecture. In this lecture, we are willing to talking about the operators in Python, just like in mathematics. Programming languages like Python, Biao operators, you can think of them as extremely simple functions like lie at the basis of computer science. These are the simplest operations to which a computer program can be reduced. They are essential knowledge for any inspiring data scientists or the software engineer. Operators are used to perform operations on the values and the variables. Let us just see how a and which is equal to one. Then VL value number B and which is equal to two. Then we take this statement leg to plus one, or c is equal to a plus b. So what is the plus right here? Plus is the operator. Operator can manipulate the individual items and return a result. The data items are referred as append or argument operators are either respected by the knowledge or the simple corrector. For example, for identity operator v US is or is not like this one is or is not. So this is our identity up worker that he is doing this stuff for. He's not doing this stop. Just like in computer programming, we use plus, minus is equal to multiply and divide. This is our simple operators in mathematical expressions. B, How a several types of operators in Python programming language or any programming language. These operators and the types are very much important. First one me how the arithmetic operator. Then we have compressions operator, then we how Python assignments operator, then logical operators. Or we can say that this is a bitwise operators, then membership operators, then identity operator, and add the last operator. Procedures. Allegedly start working with our first operator in Python, which is the arithmetic operator. Arithmetic operator performs the various arithmetic calculations like addition, subtraction, multiplication, division, and the marvelous at structure. Or you may say this is a components, etcetera. These are the various methods of the arithmetic calculations in Python. Like you can use the eval function. And let's just see how this variable or arithmetics variables operators work. Let's just see how the value four and the value eight right here. Here I just create operator which is y is equal to four and z, which is equal to eight. Here we create two variables like which is y is equal to four and the z is equal to eight. Now, I just print the operators right here, which is x plus y. So here, what is x? Sorry, here is y plus z, or you may say z plus y. Okay? X, I just write by mistaken. So now you can see here I just read the print function. So print function here is, tell us that z plus y. What is z plus y? So the z plus y means this is our variable, which is z, and the y is our variable. And this plus operator sign is or operator right here. With that expressions, you can write zeta minus y multiplied by y and z divided by Y. This is up to you. These are some operators, what we used in any programming language. Let us see next. Know hedges, Right? X, sorry, y. Plus. Then I just write print y. Multiply by z. Then are from their eyes, right? Print y, which is divided by z. So these are, these are our, some of the operators in Python programming game you. So this is why a minus z. Let us run this output operator. And you can see here, this is our output four. Wizard plus y, then y minus z. Then y multiplies Zed and add the last y divided by z. So this is, these are our sum of the values which is used in Python programming language as operators. Now we just turn to the, another example of the compressions operator. So these are our arithmetics operator in Python. Now we just turn to the compressions operator and we will see what are the compressions operator and how we use it. So the compressions operator R, I just write is equal to, not equal to, then less than or greater than sign. Okay? And then less than or equal to, or greater than or equal to, etcetera. So these are our some of the compressions operator in C that the coding example. Here, I just write that x which is equal to eight, and y which is equal to five. Now here I just write print. And then I just write here x, which is greater than y. So this is our first expressions. Here. I just right after that, is. Then I just write x is greater than y right here. Now as you can see here, we have the value of x and y right here. Then here I just print this string right here. And then tell us our print function that print x is greater than y n. Let us see the output of this run operator. So the condition is true. You can see here x is greater than y because v, how the x value is right here, and five is smaller than eight. So we, our statement was, is greater than y. So the value is true and it gives us the answer which is true right here. So this is a simple compressions operator. You, you also right here, not equal to like this one. Naught equal to, greater than, less than, less than or equal to. So this is up to you, the word you write in this program. Now we just turn to the Python assignment operator and we just see what is the assignment operator exactly. Python assignment operators are used for assigning the value of the right operand to the left operand v. How the various type of Python assignment operator, see the Python assignment operator. So here we have the assignment operator. Lake plus is equal to, minus is equal to. Then we multiply, is equal to o, then d is equal to and a structure on. Now we just see the coding example of that. Here I just write number one, then number two. I just give it the number one value as the eight. And the number two value is the five right here. Now we'll just print that. Print here. I just ride that line number one minus value of number one. This is our num one. Okay? To simply, I just said that len number one minus. So this is simply the minus sign here, not minusing the value right here. Or we just go to the rather example like this one. So I just write as removed this. And here it is, right that S, which is equal to, so arias represent the result right here. Number one plus number two. Okay? Res plus, which is equal to number one. Then I just write here print line one minus sign. Result of plus is, and then simply concatenate the result right here. So double quotation mark and said this is string into the double quotations and here I just write it as. So this is called the concatenations, Okay? Now I just check the value. So R1, R1 as an operator. So we have an error right here. So this is R-E-S for the research. Now you can see here Lanham or one result of the positive o is 2121. A calm. You can see here. I just write eight plus five, which is 13. Okay? Then I just write that Gezer, which is then reserve, which is plus, is equal to number one. So 13 plus eight. Again, I just tell you the example that eight plus five. At the first step, it will adding the value right here, which is 13. Then the condition here is, which is the result, which is equal to, sorry, here, here this conditions come with this research. Now, then RES, which is plus is equal to number one. So I just add 13 into, so this is plus sign. So I just add 13 plus eight again. So the result come here is 21. Hopes you understand now with the example of component assignment operator. So this is simply you write minus right here or plus right here. So I just simply set the miners and check the output again. And here I just write that operator. So you can see our value is five right here. So this is a simple component operators in Python, or you may say this is the simple assignment operator in Python. Now we just turn to the logical operator. Logical operators in Python are used for the conditional statements are true or false. Logical operators in Python are and, or and not. For logical operators, there are following conditions are applied. Like here. You can see I just firstly remove this examples and then turn to the logical operator example and gave you the overload on debt. Here we hell and operator. Ok, so it returns true if both operands, right side or left side our crew. If both values are true, so that operator will be executed. Then v, how odd operator or operator, it returns a true if either the operand right side or left side is true, okay? Then we have not operator. So the NADH operators return true if the operand is false. Hope. So you understand now with this example, now we just turn to the coding example of that logical operators. And here I just write that defeat our logical operator. Okay? And here as a which is equal to true. So true is a keyword right here. Then which is b is equal to false so far is also a keyword right here. Now is just write that dent, which is a And B is, okay. Then I just write here a and B. Ok? Here this is a string, and now this is a and B's a logic right here. Now I just write that print. So I just firstly copy this and paste it right here. So here is write a or B is an IRB or. So this is our ad operator, this is our order or operator. And now here I just write this is our not operator and we will check the output. So not operator Only take if this is true, if b is true, so it will take us as the faults, okay? Let us see the output. And here is ride operator. So you can see here our first statement that after this logical operator, a and B, so a and B is false, just because it returns true if the both right side or left side operands are true, okay? If a is true and B is true, so that we'll run this statement or that will execute this statement here, true. But now a and B are not true. Only a is true right here. So that way it's give us the result as a false. Then we have our operator. So order operators are return the true, either of the operands, right side or left side is true. Hope so you understand now. So it will give us a true value and add the last. We have the value BS files here. So it stick the upward and values, which is true right here. And it's meant us the true. Hope. So you understand now with this concept of the logical operators, now, we will go to check the identity operator. So what is the identity operator? Exactly. So identity operators compared the memory location of two objects, which is identity operators. So identity operators are used to identifications operations used in Python, which is, is and is not. So operator is, is return true if two variables plant the same object and the false, otherwise. Operator is not, is return false if two variables point the same object and the true, otherwise, it will not take the value. Now we see the coding example of this identity operator. Now here I just comment that this is I density operator. And we check that X which is equal to eight, and y which is equal to ten right here. Now, here, I just run the if statement. So we will learn about the if statement is in our next lecture. But now here just make a concept. If a statement is a simple loop control statement, or it is not just a loop current role, but this is a simple control is statement in Python or any programming language. X is Y. Just make a concept here of the if statement we learn about our next upcoming lecture. Here I just write grin, which is x and y. Ok? Then her eyes, right? This is same identity. Ok? Then i is right here y, which is equal to 20. Okay? Nervous, right? If x is not y, so print the value which is x and y. This operator is only checking the identity of the values. Here. As you can see here, I just declare the value of the variables, which is x and y. Then we use the operator is, you can see here, operator is in the core to check if the value of x is same as the wire. Next, we use the operator is not in the code. You can see here that, sorry, here, yes, you can see here, this is not, is the code. If the value of X is not same as y, then we have, here, we have run discord. So as you can see here, after this statement, that x and y values is a different identity. Because you can see here, here we have x which is equal to 810, then we have y which is equal to 20. So this is a different identity. Hopes you understand now with these operators. Here in this lecture, we will learn about a various method of arithmetic calculations in Python, as you can use the ML functions and declarations of the variables and the calculated all the assignments value. Then we studied about the compressions operator. Then we studied about the assignment operator in Python. Then add operator or operator and not operator and add the last. In this lecture, we will study about the identity operator or the Python which is, is and is not. Hopefully you understand all the discoursing Lecture of the operator and I think that your concept is more clear now about the operators in Python. If you not understand any of the point at any state. So you can message me or you can post your question, attitude ME question and answer, which is very easy for you. Thanks for watching this lecture. See you in next lecture. 6. Python Decision Making: Hey guys, welcome back to this lecture. And in this lecture we are going to talking about the control flow or decision-making in Python. Here in this lecture, we will also learn about if and else if statement. Well writing according any programming language, you will have to control the flow of your program. This is generally the case when there is decision-making and more, you will want to execute a third in line of code if our condition is satisfied and a different set of courts in case it is not. Let us see how lake a todo statement is taken under one. And then statement number two. Lake is statement number one is our ministry. When you can see, I just said that this is green, is white to my conditions is true right here. And the second condition is if this screen is black, so what will you do? You will write false statement in the program flow. That true statement will be executed and the fall will terminator. No, we just come to the hour lecture. In Python. You have the if else, if else statement. For the purpose. In this lecture, you will work with an example to learn about if a statement as a statement and if else, if statement. Here, conditional statement in Python performs a different competitions or actions depending on whatever the specific Boolean constants, true or false. Conditional statements are handled if statement in Python. So before starting the if else if statement, we just need to understand that what is the if statement and how to use it. In Python, if this statement is used for decision-making, as I just told you, it will run the body of the Court only. If a statement is like here. I just said that this is green, is white, so it will also only give us the answer that it is true. So that statement will be executed if it is false, that treatment will be false. Now we just turned to the coding example of that statement and we will see about how this is Tatum and Lederberg. Here's a basic semantics of this. Costly USD uses tried if statement. So if is a keyword right here, then I just write here this is expression. So if let us anything, so you can close your expressions like this with a semicolon. Then you just write statement here. Okay? Hopefully you understand now. So this is a simple if statement where we work with. Now, turn to our coding example of that if statement. Here, I just write that v hell, if core, which is equal to ten. And then Blake here, I just write that this is the core of our theory. So this is the core of our theory. And then it's the core of our practical, which is equal to 15. The two variables I just take here, which is courtiers, TAM, and core practically is 15. Hope you understand now with this concept, this is a simple variables what I just take right here. Now I just did the if statement. So if statement, which is the core of 30 plus this core of practical, which is greater than a 100. So this is a simple statement. What I just write here, sorry, this is not closed with these curly brackets for here I just write the column, ok. Now as write printf function to execute this statement. Here I just write that this statement is true or false. Simply I just write here that this statement is true or false. Here in this lecture or in this example, I just write here that the total is of course, is here, a 100 points, four digits right here, then n, 152. These are the ten points of our 3015 points is our political. This is simple example. Okay? I just told you right here, after this column is important, right here. This is our important column. If you do not write the this column here to air if statement. So that if statement will make error right here. So the colon is important because it is separated the conditions from this statement to be executed after the evolution of this condition. This is especially important for the statement. We're, there's only one statement. And you broke this statement with like this semicolon. So here you simply write if statement and then this bracket. And here you can closes this treatment with a colon right here. Helps you understand now. Now here, I just run this statement, run here, and then control flow. So as you can see here, my statement is executed right here. Now we just turn to another example of the if statement. So what is the if-else statement and how this if-else statement will happens? No. The if statement. I just make your if statement for only the one condition. If it is true, what we do if the condition is false. So here, this is our if statement. And then you can write your statement here. And after that, you will go to the entity statement. So this is a simple alphas statements. So the if-else statement is used to code the same way as you would use in the English language. Lake here, you can see here this is simply the nth. Hopefully you understand now with the third depth of discord. So let's try to work on the coordinate of this lecture or this example. So and redefine the problem here, V, regarding the score for 13 coursework. You want to add. Another two, this point for the theory part and the practical part means here, I just simply write the if conditions. And now we turn to the another condition of the else if statement. Lets just see here, after that, I just go to the else if statement right here. Simply lc that keyword right here. And then horizons tried. Does that statement will be worked on order here as you can see in the print statement I just right there. Please. Cac in port. Okay, simple string right here. And in the print statement I just write here is core is valid and your total is. And then harris, right? If core practical plus its core theory. Ok? This is a statement to check that this is your total score. And here you can write a coma. Run this statement, run the control flow. And you can see here this is simply give us the total value of debt, which is 25. Hopefully you understand now, you can see here what I just did here. Here. Firstly, I just set the variable score theory, which is ten, and the core practically this 15. Okay? This is a simple variable declarations. So this is our step number one. Can I just said that this is the else if statement right here. So what is the sorry, if statement right here? So what is the if statement? So if an if statement tell us that our core Terry Plus is core, practical is greater than a 100. Okay? To simply print there, please check the import. If this statement is not met, then what will you do? You will go to the else statement and simply execute that score practical corti with this string which is core valued, your total is hopefully you understand our if-else statement. Now. We just go to another example of L if. And we will see how to use elif right here. Okay? So if you want to do the multiple test means, the how, the many statements like if else and LCF and then one a4 as if statements for you can use the if statement right here. So let's just go to our example. Here. In same example, I just declared. L, if L is our and other conditions right here, now here is right if it is greater than 50. Okay? So what will you do? You just simply blend that. Please. Caga in port is core of fewer 30 n symbol. This is score of your theory. Simple checked. I just write here the score of theories 51. Okay? Because this is greater than D. Now, just run the output control flow. So you can see here that this statement will execute. Now what actually I did here. So I just divide this code into three steps. You can see here in four steps, I just add two and port two is of course right here, what I just told you that these are our variables. Then next step, I will kick that neither of the core exceeded the maximum possible score, which is 51 right here. And if the condition is made that this is the 50 right here to my score is 51 right here for my conditions is matched. So this also solves the problem of the total score, which is not exceeding if either one is greater than 50. So that will display the warning and exit the corner. So here you can see if my dear, this statement is not met. Like here. I just write that this is 40, okay, through simple desert 42, what will be the expected Allport? We just see the control flow. So you can see here, my core is 55. So that will simply go to dad as a statement. So how this if else statement work? I just show you diagrammatical. At first-aid. If our, if, if course is met, who simply, it will print there. Please check in port here. If this statement is not met for Firstly, I just remove this and then we'll show you the existing output. So here, if this statement is not met for simply double escaped this statement, and then it will check, this program is check this if statement. If this statement is matched. So that will simply print that our score is 51 or 40 or anything. Ok? Hopefully you understand now with this example. Then if this statement is not met, that will go to that third if statement and execute the body of the code. Hopefully you understand with this concept of the if else, if, else if statement. So if you have any problem regarding to this lecture, please let me know. And tank watching this lecture. 7. Python Loops: Hey guys, welcome back to this lecture. In this lecture we are going to talking about the loop in Python. Loops can execute a block of code numbers of time until a certain condition is met. Their usage is fairly common in programming. Unlike other programming languages. That how for loops, while loops and do while loop. But the seams are different in Python. Python only how the for loop and the while loop. Let us turn to that. What is a while loop? While loop is used to repeat a block of code instead of running the code block once. It executes the code block multiple times until a certain condition is needed. If their condition is meet, the loop is terminated. So now what is the for loop? For loop is used to, I trade over the statements of a sequence. It is often used when, when you have a piece of code that you want to repeat. N number of time means the ultimate number of times. Now we just turn to the coding example of the while loop and we will see how defined loops work. While loop does the exactly same thing, what if statement does. But instead of running the code block once they jump back to the point where it begin the code and repeat the whole process again. Here, the center of the while loop, which is wild and expressions here. Okay? So this is while. While is a keyword right here. And then you can write this statement. Ok, hopefully you understand now with this example, now we turn to the coding example of the while loop. Here, I just write that x, which is equal to 0. Then here I just define the loop. So here I just write while. While is keyword right here. I'll just write that x which is less than four. What does that mean? To four is less than x. If four is less than, sorry, x is less than four. So print the value of X right here. Helps you understand now that tried that x which is equal to x plus one. This is a simple for loop. What I've just done right here. As you can see here. Firstly, I just said that a variable x, which is equal to 0 twice, I simply set the variable 0. Then I just write that while loop check the condition of x which is less than four. And the current value of x is 0 right here, to the condition is true and the flow of control enters into the vile Luke. Obscure. Understand now. Now we just run this code and check the output for this code. As you can see here, it's running 1234 times. So it will check the four statements right here. As you can see here, that will print the value of the x. Here. It prints the value of the x right here. So now x is incremented by one right here. You can see here, if this statement is true, so that will write that x will increment right here. So increment is x plus one. So the condition is true. And again, the loop is executed. Two, that will continues till become four, and the wild conditions become file falls. You can see here x plus one. So here it will, it will fare that 0 plus one, which is equal to one. Firstly, it is 0, ok? Here, first the statement is true, then second statement is true. Then one plus one, which is equal to two. Then here I should write two plus one which is equal to three. So loop executed for time and then that will terminate the loop body. It will give us the result of 0123. The loop is executed for time right here. Now we just turn to the for loop example. So for loop in Python is simply card I traitor. Just like you just say that a for-loop is also used to repeat the programs. But unlike while loop, which depends on the conditions true or false, for loop, it depends on the elements. It has to be. I trade. Let us see the coding example of that. Here. I just simply comment this example. And then I just go to the for loop. Four is simply the keyword right here. Helps you understand now with a for loop, that for loop is a keyword right here. Here is defining the for loop that x in range of 39. What is the range right here? Range is simply, you can say that range is a function right here. This is a built-in function which is the right functions to iterate over a sequence of numbers. It can generate an iterator of arithmetic progressions. Let us DV how like. Firstly, I just comment this and learn about the range concept. That you can see that this is a simple rain function. And here I just write that the range, which is equal to five. So this means that the range will be executed from 0 to 50242. That means that The indexing of this range is 01234. So these numbers are five numbers right here. So this is a simple range function. Hopefully you understand now with this function, now we just turn to the for loop example, and here I just un-comment this example. Now. Fourthly, I just defined the ring function right here. And then I just write that print. And print is the X right here. You understand now, now we just see the expected output. Run, run n loop. You can see here the loop is executed from 345678, and that will terminate the nine right here. So when the code is executed, it will print the numbers between like three to nine. You can see here it will print 345678. So these are the six digit flight here. So the number seven is not considered inside the range. Remember that? Like here, the numbers are salmon, like 3456789 for these other seven numbers. But that will terminate the number seven, which is nine right here. Hopefully you understand now this is a simple concept of the for loop in Python. Now we just see how we use for loop for the spring. Here. I just uncomment this and we will learn about the for-loop string. Firstly, I just defined the month right here, and month, which is equal to here, I just define that January. Then here I just define that February. Then I define that March. March, okay. Three months right here, okay, only has defined that for m in months. Okay? And simply print the M right here. So this means that for three, I just define the strings of January, February, and March. Month is my variables. And these are the values to these variables. So these are simply the string right here. And then I just print the for loop that for him in the months. So symbolic Brin, the mud right here. Now I just run this code and you will see the output that January, February, and March right here. To this means that we, I trade the for loop or the ij values in the month. The current value of the month is store in the variable m right here. This is a simple loops in Python which our while loop and the for loop helps you understand now with the looping concept in Python, if you not, please let me know and thanks for watching this lecture. 8. Python Lists: Hey guys, in this lecture we are going to talking about the Python list. A list is exactly what it sounds like. A container that contains different Python object, which could be integers worth value. Third structure, it is the equivalent of an ad in other programming languages. It is represented by square brackets. And this is one of the attribute that differentiated from tuple which are repeated. Or you may say that this is separated by the parenthesis. It is awesome mutable data is, it can be modified or uploaded. Unlike tuple. Here, in this lecture, you will learn about the list. The most basic data structure in Python is a sequencing data structure. Or you may say that this is a sequence of the data structure. Each element of the sequence is assigned a number. It's position or index. Let us suppose here we have the first index is 0, then we have second index is one, and so forth. 234 indexed. It is just like here. I just draw a column and divided into the different parts. This is here, the value is, I just remove these values here. Firstly, I just write a value of three right here, then five. Then here I just write three again, then four, and then nine. Here. These are the values of every column block. What is the indexing architect Louis? Indexing is start from 0 and goes up to n numbers of n. Here. I just said that this is the index number 01234, which is equal to the value I just insert here is this block is five. I just told you that indexing is start from 0 and thought on the values of n hopes. Do you understand now with this example of indexing, Python has fix built-in types sequence. The most common one is lists and tuples. We will learn about the tuple in next lecture. But here, this lecture is totally focused on the list. There are certain things you can do with all the sequence type. These operations include indexing, slicing, adding, multiplying, and checking all the membership and deletions. Python has a built-in functions for finding the length of the sequence and for finding its largest and smallest element. What is the exactly representations of the list and Werther exactly example of the list. Here, as you can see, List is a simply a keyword. Then you can provide the element to the list in column like this one. Sorry, bracket. Here you just provide the value of the list. Let's just see we have the value 1234. This is the value to the list. So this is a list of the integer types here. You can also write the integers like liftoff, the correctors, strings, and the flawed number alpha. So this is up to you that word, values of the integers, values of the list you want to add right here. Now we just turn to the coding example of the list and we will see that how this list works. As I just told you that here we are just simply initialize the list. Isis, right? Lift as a keyword for representing the list which is equal to, here is right, that 12459. So this is the list of five integers. Then I just write that list. And here is right animal, or here I just write lift a for representing the element fully the animal heads you define that animal is doped. Then I just define that a cat for these other two liftoff animals right here. You can also write the list of the names. And also you can add the liftoff, the floating point number. And here I just write that this is equal to 2.2. And then here 3.59.5 or 6.5 files with two, these are the routing numbers to the lift up to you that you want to add the number to the list or anything. Do you weren't here. I just said that to the compiler. That Mr. compiler print the list here. And the list. Print only the index is 0 right here. So I said to the compiler, only print the index 0. And here it is, right list, which is for our list here. And only print the index number 0 right here. Let us see the expected output for this code. Run and run as a list right here. So you can see here my this list is list number 0 and index number, sorry, the list number one right here. You can see here this in my list. And this is the index number 0 and the value to this Dino and depth is one. Let us go to add one other element into the list, which is, I just want to print the index number one right here. As you can see, I just run the core. And then harris Red List. You can see here at the second number, this is a list number 0. For this is only the list number 0. And this is the index number two right here. If you want to add print. So print list number 0 right here. And I even do print the values from the index number one to index number four. Save the program, run and run as a list. So you can see here it's only print us. The index number one is to three, and then this is four and this is five. So 12334 index files are the values. So here only spent 2453245 here. Because this is only take the values from one to three that will not print the value number four right here. So you can see here 245. So the skips, the nine right here. Now here, I just said to the compiler that compiler print list number a and print only the index number 0 right here. There is a c were the compiler do to compiler printers. The list number right here, sorry, here I just cried list number a and print the index number 0. And you can see here, it gives us the values of dough for theme is a case like the list number f also. So this is up to you that you want to add any of the element into the list. And do you want to delete any of the elements from the list? So this is a simple example of the, what I shows to you. If you help problem regarding with this example, please let me know and thanks for watching this lecture. 9. Python Tuples: Hey guys. In this lecture, we are going to talking about the tuples in Python. A tuple is just like a list of a sequence of immutable Python objects. The difference between lists and tuples that list are declared in square brackets and can be changed while tuple is declared in parenthesis and cannot be changed. The difference between the pupil and the list, I repeat again that a list, you can change any time, but the tuple, you cannot change one. It declared. However you can take we're portion of existing coupled to make a new tuple. This is a simple strategy to make a new tuples in Python. As I just told you that a tuple is a sequence of immutable Python objects. And tuples are, also are sequences just like lists. Okay? Hopefully you understand now with our definition of tuple, Now we just turn to the coding example of tuple and we will see that how this tuple works here in this lecture, I just do our assignments, means I just do a tuple declaration and I will show you that how this type of work. Here. I just defined the top 0 which is equal to this is the parentheses. Here is write the name which is by Tn. Dan Harris tried the name, it is Java closest chord. So here rises closest code and then gain causes cold. Nice red Java, C Plus Plus closest code. And then harris Red, C-sharp and closes. So the dimension of C and T hash for representation of T sharp language. So simply that how the tuple is closed to tuple close with this semi colon. So hopefully you understand now with the declarations of the tuples right here. But if you do not want to give the semicolon right here, so just leave it. I just do not want to give the semi-colon right here yet, TOPO. Okay? Now we'll just define top number one for the tuple number one right here. Here's is defined. The parenthesis is given the value one, sorry, 125, or here is 312345678. The eight values right here, I just gave it to them. Tip number one to Polymer one. So TB1 and top 0 is our variables right here. Now, I just go to print the values right here. Here, As you can see, I just write that print plenty the functions to display the value. It has died top, which is on the indexing number 0 right here. And I just want to print the top 0 right here. So top is our variable here to top 0 and is sworn to print the indexing value on the top 0 is 0. Here I just go to running the code and the tuples. And as you can see here, it gives us the value of the top, which is on indexing number right here. So this is our index number 0. This is an index number one. This is index number two, and this is the index number t. And this is our valuable in tuple. Hopefully you understand now with this print function, now we will go to another example of that tuple. Okay? Here, I started the print function and I just want to print that. So this is simply the list, whereas right top, which is the top number one right here. And then here I just defined that this is top number one. And print the value on the top number one. And that thing number one from five. Run the code and the tuple. So you can see here, this is indexing numbers 012345, fig and famine for the proton values are eight right here. But here I just do the indexing from 0 to seven for the eight values. Okay, hopefully you understand now. Now I just said to the print function that print the value from indexing Number one, do the indexing number five in the bracket. Here is print us the value. Number one is two, then three, then four, and then five. So between this vehicle, the four values, so one to five, so v how value number one, then two, then three, and then four. So it takes only the four values right here and give us the answer of this tuple right here. Hopefully you understand now with this example, at first, you can see here I just simply add, I just simply make the tuple and then included Python, Java, C plus, plus and C Sharp or tuple. And line number two, you can see here, I just write here tuple number one, peeling the variables and adding the values dead. Then I just call the values for the 0 and tuple. And four tuple number 12, we call the value between one fight flight here. Ok. So at the last I will run the code and this is give us the answer of by tonight for the index number 0 right here. And then 125 porta tuple number one right here. Hopefully you understand now with a tuple example. And you can also understand that how this tuple work and why we use this couple. So I just told you that the tuple is a sequence of immutable Python objects. And tuples are also a sequence just like a list. So there is only one difference. I see speed, again, that tuple and the list is that the tuples cannot be changed unlike lists. So you can also see that the tuple is only present in the parenthesis. But here the list is represented in square bracket. Hopefully you understand now and your current surplus, much clear now. So this is a simple example of the tuple. If you find any of the problem regarding you, this example or any of the point you do not understand with please let me know and thanks for watching this lecture. 10. Python Dictionary: Welcome to this lecture. And in this lecture, you will learn about the dictionaries in Python. Dictionaries are another examples of our data structure in Python originally is used to map or associate the things you want to store. The key you need to get them. Originary in Python is just like a dictionary in real-world. Python dictionaries are defined into elements and keys and the values. The key will be a single element and the value can be lift or within the lift. Or you may say this is numbers at structural. To representing the dictionary. You just use this as a keyword. And how we use a dictionary, you can use the curly brackets. And lake here I just write this is Python. Sorry about my writing. Then you can write colon. Then you can also write numbers here. And then you just simply died XYZ or anything, and then close this column right here. This is simple way. You just write the dictionary date in Python. Dictionary is listed in curly brackets. I just told you, these curly brackets, keys and the values are declared. Each key is separated from its value by a certain column, while each element is separated by a comma represents. Remember that here, I just pride at the example of the dictionary, which is equal to harass ride. That. Firstly, I just write that. This is Python. Then I just write that Python 19, then comma, then Harris write that C plus, plus. C plus, plus. Here is, I tried that 20. So this is a two words of declaring what I just write here. Now, just see the example. Here is right, that print and print is dictionary right here. For his formula that I just want to print the dictionary right here. Here is right that pretend only python right here. Okay? Now you just see run dictionary. So it gave us the values to this dictionary, which is a Python name is a Python right here as you can see. And it gives us the values of the dictionary, python right here. Here in this code. I've just said that b, how the electron images DIC dy, dx. And we declared the name and the age of the programming languages, Python in the dictionary, where the name is our key. And I just want to search the key enough print function. And our ear is 19 right here. And this is the value of the dictionary. Okay? Then I just run the code and the 99, our output. So here, beheld two important points. While you are using the dictionary key to more than one entry, perky is not allowed. Remember that? And no duplications of qi is allowed. This is our first, remember that then the values in the dictionary can be of any type, while the key must be immutable. Like that will be our numbers. And strings and tuples are chakra. Then another point is dictionary keys are censored you thin key name, but different gifts are treated as the different keys and Python dictionaries. So these are the some main point or your method is that the properties of the dictionary's keys that you want to add here in this lecture. That this is very important point that you can use with dictionary while you are, you are using declares in with your program. So this is a simple example of a dictionary in Python. Hopefully you understand now with this example of the dictionary, if you're not, please let me know. And tank watching this lecture. 11. Python Date & Time: Hey guys. In this lecture we are going to talk about the Python date and time. A Python program can handle date and times in several ways. Which is you can say that converting between the date format in the common cause for the computers by them times and the calendars modules help trig dates and times in the time you can use tech. So what is a tick exactly? Time intervals are the floating point somewhere in the unit of seconds. Particular instance in the times are expressed in the second sense, you may say that today is 12 AM. The date of the today is like 700 or 17 of December 2019, approximately. Juris popular Tom models available in Python. Vsb ride. The functions for working in ton and for converting between the representations. Here, I just use a function which is a name of time dot time. So that's returned the current time in the ticks, which is you may say that called VM and today did is December of 17, December of 2019. Or you may say that I just use here function which is data dot today. So this is also another function you can get the date of today. Now we just turn to the coding example of the Python date and time here. And we will see that how we can get the Python date and time with the coding example here, our tissues. Or you may say this is our module. What is used here, which is date and time. So you can see here, this is a module to get the date and time from the Python library. And that is the nicest import date symbol right here. Then I just create a variable name, which is today. And this is the functions to get today a date. So this is an exemplary program. Were times is doing here to get only the two-day date from our ID. Now just print PDA date. And then I just pass today to getting this today, our port right here. So what I just exactly done here. So here we import the Date class from the Date and Time module. So this is a deer did class from date and time, morning right here. Then we use the date dot today method to get the current local. Did. Now we just run discord and run date and time. And you can see I just get today date which is 2019 December and the date is 17 right here. By the way, did DO today returns a date object which is assigned to the today variables in this program. Now we just see that how to get the current date and times together. I just remove this. And here I just go to the example again. Here I just said that this is a two day time and then import did n time library. Okay, here, I just remove this. And now here it is right there. This is date and time, one, which is equal to date and time dot. Now, sorry this date and time dot, date and time one. Okay. I just simply call this object right here. Now I just bring that. Now. Did and time, which is equal to and then here is a spring that date and time. One. Simply get this method. Now here, I think US, which is D t underscore is string lake here I just used DD underscore is string. V is equal to SDR f time method to create a string representing the date and time and different matters. So here you can see that this is I described that date and time one dot SDR f time. So this is the matter we can get the different styles of data and Pam, percentage sign d. Then this is for dead person days sign month, sorry, this is here separated by this slash, then personally send m, Then slash and personally sign here. So this is how I just simply create the format of that. Then Harris's right, our column here, and then minute, then colon here, and then second or so. You understand now at this, No, I just simply print date and time, which is equal to and here you simply pass DT underscore a string. So you understand now. So here, this is the comma. What is this right here? And you can see now, now I just run this code and the date and time. So we have an additive line number three, which is here, I just ride that date and time one, which is equal to date and time, dot-dot-dot and time one right here. So this is a simple datetime object to containing the current date and time. So as you can see here, I just did a little mistake right here, which is I described variable name right here, but this is not exactly function. The function name here is a date, time dot. Now because we are just getting date and time right now. So I just run this code and date and time. So you can see here now date and time, which is equal to here. You can see grab 201912 means December and data 79th year and today time is this one with this our seconds microseconds. Then you can see here Date and Time is totally like this one. Hopefully you understand now. So here we have used it in time now to get the current date and time. Then we use SDR f time to create a string which is representing the date and times in another format, we held the two formats right here you can see 12. Hopefully you understand now that how we can collect the date and time in Python. If you find any of the problem garden you this lecture, please let me know and thanks for watching this lecture. 12. Python Functions: Welcome to this lecture, and in this lecture we will learn about the functions in Python. In this lecture, we will see that what is the function, what is the syntax of the functions? And we will also see how to create a function in Python. Before starting the function, we just need to understand that what is the function exactly? In Python, function is a group of statements. Or you may say this is a group of related statements that perform a specific task. Function helps us to break our program into the smaller and modular chunks. As our programs grow larger and larger, functions make it more organized and manageable. Here is an example of you can see here, this is a totally in dire project. What I just write here. So this is a project of inventory management system, or LMS, is representation of inventory management system. Then I just divide this program and today, four parts means isis dividing the whole project into four parts. First one is, is talk, where we'll see in the inventory management system. Then we will see our sport and report. Then we will see in y. And add the last. We will see that our monthly performance. So I just simply write this. As you can see here. I just divide this function into four parts right here. Okay? This is the four parts of this function right here. This is the entire module and I just define this entire modular. You may say that this is the entire project into smaller parts like 1234. So this is how functions work and easy our programs. Now we will see the coding example of the function. Or you may say this is the syntax of the function that how the function works. I just defined right here D, f, then function Nim. And then here I just write pedometers. Nice red color right here. A statement. Okay? So what I've just done right here, as you can see here, the DEF keyword to write the function or representation of the function, function. Then here you may say this is the function name like here, I just write D, f, then function name, you may say ABC or any of the name you want to add rate here. Then these are the parameters. Or you may say this is the argument of the function which is passed value to the functions. So they are also optional. Then I just write here a column to a column is to mark the end of the function header. You can see here this is a column and this is to mark the end of the function header. Then this is, you may say statement right here. So one or more valid buttons that make up the function body statement must have the same identification. Or you may say this is our ident, attention level, which is usually the four species. Then after that, you may, you may say this is return. So return statement is simply the optional statement if you want to add right here. So added if you do not want to add right here, so leave it. So this is how the syntax of the function, and this is the simple example that what is the function and how the functions work, and how we look, how we can write the function. Then here I just write the F and D. So the name right here, simply example, this is our df is a keyword of the function. Then greed is our function name. This is the pedometers off our function. Okay, and analysed the column. So this is the function of the deed to the person which is passed in as a pedometer. Simple. Now Harris write print and print here I just writing that the fifth hello and hello, I just can get an eight here, Nim simply, I just simply call these parameters right here. And then after that, I just tried. Goodnight. Hopefully you understand now. So what is this actually did here? Symbolic cleared the function with the name of greed and pass the parameters an m. Then I just asked to the print function that hello, friend, dysfunction. And then good night. Now run function. As you can see here, my function is run right here. This is not gimme the actual output rate here. Why? There isn't a question. This is how I just didn't art call a function here. So there's also process of the functions calling in Python or any of the programming language. So once we have defined a function, we can call it from then adder function program our, even the program prompt to call a function V, simply type the function name with that appropriate pedometer. Hopefully you understand now. Now we will see another example of the function that how do we turn this statement? So I will cover the function's calling in it. We will see that firstly, I see that the returning statement in functions to the return statement is used to exit a function and go back to the place from where I can car that stirred men like a thimble. I just taking the return value of the name right here, or I just taking the return value of the grid right here, I just run this run as the function. So you can see here my program is running. So this statement can contain the expressions which get evaluated. The value is return. If there is no expressions in the statement or the return statement itself, it is not present inside a function, then the function will return None object. This is a simple example, simple definition of the semantics. The return statement Python. So now turn to our program. Here. I just defined a function images greed, or I just change this function right here and here I just write ABC. Then I just pass nothing in the pedometer. Here. I just said that y, which is equal to 20. And then print, which is simply, I just write here that value of the function. I just remove this right here. And then closest chord right here, and then comma, and I just call the y-value right here. Now i is right here. That x equal to b. Okay? Then I just call that functions right here, which is the ABC function. And add last. I'll just write print statement. And then while you outside the function helps you understand now, now run this code. Run. And sorry for that here, R1 and R1 as a function. So you can see here, my two functions aren't running great here. Helps you understand now, as you can see here, I just write that df ABC then value y, which is equal to 20. Here you can see in the answer section the value of the function is 28 here, because I just calling this value of y in the print function. And here I just did not positive value. So that's why it is not giving us the value of the variable right here. So you can see here both the output right here, hence v. We can see the value of x or value of the y right here. So the value of excess 30, initial value, even target function name ABC changed the value of x, ten or 20 or 30, anything. It didn't affect the value outside the function. Means here, this is the insight value, which is y right here. And y is initially 20, 30, or 50. So it did not effect the value of this outside function or functions value did not affect the inside function's value. This is because the variable inside the function is different, which is a local to the function from the outside to the house. Same names. They are two different variables with different scope. On the other hand, variables outside the function with the name of the variables are visible from inside the global scope. And we can read these values from inside the function, but cannot change and write it. Then I order to modify the value of the variable outside the functions, they must be declared as a global variables using the global keyword. Hopefully you understand now the function. At the last, I just tell you that the types of the function that we have basically two types of functions. First one is a built-in function. So built-in functions are the functions which come with the Python library. Like here. We have the print function. To print function is built-in function. This is come with the Python library. And then we held a user-defined function. So the user-defined defined function is come with like this one which is the ABC. What I, what I described here means the function defined by the user themselves, their skull. User-defined functions. Obviously you understand now with the function. If you find any problem regarding, with this lecture, regarding to any of my lecture, please let me know and thanks for watching this lecture. 13. Python Files I/O: Hey guys, welcome back to this lecture. In this lecture we will see about the file input and output in Python that how to handle Blinn textFile in Python. Before starting this lecture, we just need to understand that what is the plain text file and how to handle it. Biotin is a great tool for processing data. It is likely that any program you write will involve reading, writing, or manipulating the data. For this reason, it's especially useful to know how to handle different files for me, which is stored different types of data. For example, consider a Python program that check a list of user for excess current role. You will list off, the user will likely be stored and saved into textFile. Perhaps. You are not working with texts, but instead how a program that does functional analysis. In order to do some number crunching, you'll likely have to import those number from us, save a spreadsheet. Regardless of your application, it is most granted that inputting or outputting data will be involved. This lecture will briefly describe some of the format types by Tn is able to handle. After this lecture of this lecture of Python input and output with a file format, you will go through how to open, read and write a text file in Python. The first function that how we can create the file. So here you can see I just go to my directory here. And here I just create a text file with the extension of dxdy. And here I just write dxdy. Ok. Here is right. Hi, I M Python. So this is simple how it is, right? Or how I just cleared the file for. This is our first tab that how to create the file. Now, we just go to the function or the method vere. We open our file and how to open a file with coding. Now see here I just print like file or files which is equal to here a function name using Open to open the file. So the file name here is dx dot dx dy. You can see here I just simply take this file name. So this is coming right here. After seeing the file, okay? Here I just simply picks that. Then I just write that. And then I just write that brand name of the file. Okay, the name of the file after that, i is right here. And then I just write files dot name. Okay? Then after that, I just write print function again. And then here I just write closed or not. And then after that, I just go to the another function. Here. I just create a file name and now I just create one another for file closed. Okay? Then here I just print and put in o mode. Here I just simply open the file. And this right, that files dot mortar. Okay. So file is my dysmenorrhea was right here. And Harris write files door closed. Or this is simply a clause here. And this is simply how I just opened the file with these. So this name, close and mode is our object attribute state here. You can see that. You can see that once a file is open and you have one file object, then you can get various information injected Foo to dead while here, the clause. If file is close. Otherwise that we'll pause. Here, I just set an attribute which is the file mode. So file more is returned, access more which file was open and the name attribute is return the name of the file. I just run this code. And you can see here my file name is text dot text. You can see here is go to the open mode, thesauri, the name mortar Foster. Then you can see clothes are not faults. Okay, So I just told you that it returns a true if the file is close, false, otherwise. Okay, then open more right here. And here you can see the open mode is r right here. Hopefully you understand now that how we can open the file with the help of Python. Also closed mattered right here. So I already defined the blues mattered here with the help of that file dot close to final is my variable late here to the open function or open method. So file glues matter of file object. You can see that fleshes any unwritten information and closes the file object of her reach. No more. Writing can be. Then whiten, automatic, delete, close our file, then the reference object of the file is resigned to another file. There is a good practice to use the close method to up-close by. Beside that, we also have the read and write file. So what is the readFile? Since there were file has been opened and weaken now manipulative and rigid. From it through the variable v assigned to it that Python provides deleted operations for reading information from a file. We will show how to use all these operations as an example that you can try to get an understanding of how they work. How come to the coding example right here. So we have file opening text idea. And we want to give you the access of file writing. So here I just write files dot, right? Okay, so this is a simple file writing method, or you may say V, How the reading matter. So just simply defined like SDR. So it's just a string. And then here I just write files dot read. So I already gave you the example of the loading the file that we're writing the file right here, and how we can drag the file. So as you can see, the right method, right? Any string to open the file. You can see here, right matter is anything you can write opened up is Spring Lake here. I just write that. Python is good programming language. This is our, How I just write here in the file. So as I just told you that Python right method rates any string to open the file. It is important to note that biotin is string can be binary data and not just a text. So this is simply how we can write our file. Hopefully you understand now what is the reading of file? So here as you can see, I just write a string file dot read. And then here I disposed nine right here. Ok, so nine is any number. If you want to. You may say that these are the pedometer is only I'm just passing that ninth pedometer. Okay? And after that, I just simply print that. Read. Is, sorry, this is, this string is, and here I just write. Str will simply pause. The pedometer right here. Helps you understand now, this is how we can create reading, writing, and opening the file in Python. Now I just run this code. And we have an errand land number five, which is Files dot right, right here. Okay. So you can see here, I just write their files dot right method. And then this is how we cannot write, read. And you may say open the file in one program. You can see here, I just define T2 formatted right here. As you can see, by just simply remove this and then run either file and put in our ports. So you can see here by this, by this or this coding is working properly with the help of file opening, the reading without writing. So this is how we can handle our file. So in this lecture, we went through how to handle and manipulate the plain text file in Python. Now you can open, read, and write and close files in Python and you can continue working with you and armed it end Python. Hopefully you understand now with this example and the file handling and input o per metered in Python. If you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture. 14. Python Exceptions: Hey guys. In this lecture you will go through the exception handling in Python using try except and finally, take when. This is motivate you to write clean and reliable and efficient coordinate Python. Before starting the exception handling in Python, we just need to understand that what is the exception exactly? Python has many types of built-in exceptions which forced you or programs to output an error when something goes wrong. When these exceptions occur, that causes the current process to top and pauses it to the calling process until it is handled. If not handled, Our program will crushed. For example, if a function a. Here, you can see here, if a function a calls B, OK? So which will return or which will turn the call function C right here. And reception occur in a function. And if it is not handled in a, see the exception parses to a and b appears ten. Now, if never handle an error message, split out and our programs come to a certain unexpected hype. Now we will see what is the caching or human status is a catching exception in Python. In Python, exception can be handled using price statement. This is a very normal, a critical operations which can rises. Exception is placed inside the try clause and the court dead handles exception is returning except clause. We will see the coding example of that, that how we can catching the exception in Python, this simple library that is used in exception handling, which is import system. This import system to get the type of the exceptions only. Okay? Now here I must write random. Okay, so here I just simply cleared our variables on the random to generating the random list. Then here is write a 02. Or you think you can see that 23 appearance panel here just define a for loop for inquiry in random. So random is my variable right here. Helps you understand now. Here, I just used try exception, which is for getting, okay, so here is right try. Then I just write print. So I just wanted to bring that in three. Okay? And simply pause the parameter as the entry right here. Then r, which is equal to one divided by integer inquiry. Okay? And and then break ups, you understand now. So break after this break statement, we will go to the except. Except right here. No, I just tried rented again. And here I just write oh, I just simply write this statement right here. And then here. After that, here it is POS system dot e x e and underscore info. Okay? This is how we can pass our exception. And then here is 0. Now, I said that occurred or this is occurred. Okay. No. Helps you understand now. No print. And i is right here, which is next entry. I just explained this cord after completion. Now after that, I just bought a print function again. And then print. And here it is, right? Or you may say that report off. Okay, and here is right, entry. And so this is the entry right here, and entry, the port of entry is right here. So r is my variable right here, Okay? Now I just explained it, or as you can see here, that in this program loop, until the user enters an integer that has a valid, you may say our report. This portion that can cause the exception is placed inside the block. You can see here, I just call, I just create a for loop. And then I just said that this is the valid data integer enters the valid report. So this portions causes the exception is placed inside that try block. Here. It will, please the exception. If no exception occurs, excepted block is kept and normal flow continues. But if an exception occurs, it is caused by the exception except block here. So here we need the name of the exception using info. Lake here just simply print the name of the exception using 0x, 0x, sorry, deceased symbolizes right here, 0x exception not EXE. Okay? So this is a simple EX exception right here. Or you may say this is e, c exception, okay? And I'll just close this right here. Okay? Now the function inside the system mode. Here, the function inside the system mode is, you may say that we'll ask the user to try again. And we can read the value of E. And the value of a is causes the value error. And here I just paused. The 0 causes, which is division of means distance a 0 division error. Okay? So what is the exactly dry and except block in the exception handling? You can see here that try and the except block in Python is used to get unhandled exception. Python executes the code which is following the exception as a normal part of the program, Dr. exception here, this is the normal part of the program. The court that follow the exception statement is kilograms, which is response to any exception in the receding try clause. If you want to create an exception to simply use except as a keyword and then run the exception. So as you can see here in this coding example that VR scientifically correct the code, run into an adder, that Python will throw an exception error and that new method, this is the exception edit, will crash the program if it is unhandled. Exception causes determines how your programs responds to the exception. So hopefully you're understanding of and just coding example. Now we can run this code and you can see the expected outputs to veto the adenine land number nine, which is the editor of the print. And here are just passing the strings right here. Now we can see that what is our error exactly to Harris's right brained. And then I just write that system dot EXE underscore the info. And here I just simply write the underscore, which is normally more. And here R1, R1 as exception. Line number 13, we have an error we just print. And now I just clear this adder as well. And you can see here. So as I just told you that firstly the entries and which is the opposed, you can see here, you can see here this is ok. And it is okay. So you can write any of that thing right here. This is just for your understanding. So here you can see here we have the class value error which has occurred. Here you can see in the except block dries simply the statement to check the statement. Okay. Then we help bring the next entry and the next entry it is 0. And then we have the ops glass and which is d 0, which is division error occurred. And then next entry, and that entry is two. And the report of the artist to 0.5. as I just told you that in this program we loop until the user enters an integer. Dad has a valid Report and the portions that can causes exception in placed inside the try block. If there is no exception occurred, exception block is skipped and normally flows the continuum continuous, but it is any exception occurred. It can causes by the except block. Here we print the name of the exception using this EXE info and then function inside the system module and ask the user to try again. And we can see that the value, and here you can see 0.05. and two. And here you can see here, yes, CO2 and 0.5. causes the value error. Sorry, here you can see here this is causes the value error. You can see here. So which is 0 causes and which is the 0 division error. You can see here this causes dissolved reprinted report causes the 0 error, you can see here. And the value of entry is also 0 here because I just write the 0 right here. The try statement, Python can have an optional finally clause. This clause is executed no matter what and generally used to external resources. For example, we may be connected to a remote data and or MSA distance at a more datacenter through the network or working with a file, or working with a graphical user interface. In these circumstances, V must clean up the resource ones used. Whether it was successful or not. Does the action close a file or disconnecting from the network and we perform enough finally gloss to guaranteed the execution for representing, for defining the. Finally as simply, I just remove this or this is not using with the final yoke exceptions here you can simply write finally. And finally is alpha keyword. Okay? And then here of this, sorry. Yes. Now you can see here, and then here simply write f dot close. So this is how we can define the finally. Okay? So this type of construct, make sure the file is closed even if an exception is occur. So this is just four. So I just go back to our old example. So hope you understand now with this example right here with the exception handling in Python, two edges is told you that v, how the two types of exception handling, which is a Python built-in exceptions and Python user-defined exceptions. Hopefully you understand now if you find any of the problem regarding to this lecture and any point you not clear, please mention it. And thanks for watching this lecture. 15. What is Tkinter: Hey guys, this is an introductory lecture of a biotin kingdom. Before starting the Tkinter, we just need to learn that what is the Kingdom exactly? Biotin offers multiple options for developing graphical user interface. Out of all, the graphical user interface matters, TkInter is a most commonly used method. It is a standard Python interface to the TK GUI toolkit, which is shipped with Python. Python with kingdom is the fastest and easiest way to create the graphical user interface application. Creating a graphical user interface using TkInter is easy task. Tkinter commonly comes bundled with Python using TK and it's Python is tender GUI framework. It is famous for its simplicity and graphical user interface. It is open source and available under the Python lessons. Note that the king Turk comes pre-installed with Python three, and you not need to install. Tkinter is the standard GUI library for Python. Python when combined with Tkinter, provides a fast and easy way to create graphical user interface application adult, I just told you, Tkinter provide powerful object-oriented interface to the TK GUI toolkit to creating a graphical user interface application using TkInter is the easiest task I'll you need to do is perform the following estab. First one, import the Tkinter module. Second one to create the graphical user interface application. The main window at one or more of the veggies do the GUI applications like button, entry, badgers, frame at structural, enter the main event loop to take action against each event triggered by the user. What is the t k exactly in Python by an interface routines CIT gave the Tkinter modules, or the TK interface is a standard Python interface to the TK GUI toolkit. Both TK and character are available on most unix platform as well as on Windows systems. If you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture. 16. tkinter Button: Hey guys, in this lecture we are going through the Tkinter buttons. The buttons graduate is as tendered pink to ratchet, which is used for the various kinds of buttons, batteries of wedges, which is designed for the user to interact with. For example, if the button is pressed by the multiplex, some action might be started. They can also contain the pact and images like labels. While label can display tax in the various parts, a button can only display the text in a single farm. And the text of the button can expand more than one line. Here, as you can see here on your screen, V How the tab button. So this is just called a tab button, which is the extension of p1. Here you can see these are the drop-down menus buttons, and these all are the, some kind of buttons. Now we will see the exact example of the button that how these buttons our work in Python or any programming language. Here. I just write from character. So this means that import everything from Tkinter and heritage, right? Import static. I just import everything from the pinker module. Then root, which is equal to T K. Hopefully you understand now, this is how we just create a simple screen like here. I just simply create the screen like this one. Ok. Now we are going to said that route dot min loop. I just run this code, run as a button. And you can see that my screen is like this one shown to me. No, we just inserted a button to end. But an intuitive. Now Rudolph geometry. Geometrically as just like that we have given the dimensions do our, this Monroe's lake here, I just write that. And here I just write that. 400 x 400. What does that mean? That mean that our window will be shown to us that 400 x 400. Let us run this code. And you can see here this is the size of the window, which is different from the last runnable program. Here is write btn, which is equal to button. Button is a keyword to adding the button into your GUI. Here. I just said that add this button into the roof screens. So here I just simply call this root variable. Okay? So here I just also write Rudolf geometrical, please this geometry into this hour root screen, or you may say that Tkinter window screen. Hopefully you understand now. Now I just giving the tech to orbit and that how our butter will look like. So here is right, that this is Click Me. So here you can see I just add the button into the screen, which is the text of click me. Okay. Now here I just write that, which is border. So here you simply defined border which is equal to bd to boarder phase is five right here, appearance ten now, then I just separate this border with a comma. And here I just write c'mon. Ahmad here is equal to root dot desk dry. So this desk dry command mean manages. Click on this button to action might be good. Hopefully you understand now I just run this code and shown to you that the output of this button program. Yet so far you can see or button is not added to the three. Ok. Now just see, here I just write button dot, peg geometry mattered. And I just write that site which is equal to top, helps you understand now we just size equal to top. Okay? This means that I just said the position of the button on the top of the window. As you can see when I just click on that runnable program. So you can see here, this is the Click me button, okay? And you see the border of this button. So this is button. Then the border here is, which is five. This is the text which is Click Me, and then this is 400 x 400 size of window. I just write here simply to printing this oral screen right here. This is mean that import everything from the TK enter. Or you may say that is a Tkinter King drew TK enter the same thing. Okay, now I just click on that. You can see here that actually destroy means this command is to destroy. When I just click on this button, no, we just turned to one another example of the button and we will see that how this burden work with another example. So let us just call, as you can see here on your screen, that I am just commenting all my this whole program and now just turn to our next program. Then here I just write from Tkinter, Okay? I just not commenting this one. Now you can see that here I just define a class. This is just for show you that how we work with the classes right here in the Tkinter. Now here I just write window and then frame. Frame is a keyword to Prim. We will learn about the frame and next upcoming lectures. But now here just make a concept. Here. I just define a function which is initializer cell. And here is i is right that this is root, which is equal to None. Route. You know that root is simply variable right here. You can see here I just create a screen which is root three a1 and which is equal to p K. Okay. Do you understand now that that or here I just said this into the master, NOT R2P. Leave it. I just said this master right here because this is a frame. Okay? Now I just defined frame dot here, I just write initialization of this method. And then self dot muster helps you understand. Now, here I just write root dot min luke. Okay? Now I just go to the frame right here. And then here I just write that this is self dot master, which is equal to master. So I just take Master here because we are not mixing up with the root variable and the master variables. Okay? You can take anything from the for that. Now here is right felt dot initialized method. And then here I just write that this is the initialization of window. Ok, hopefully you understand now I just simply initialize the vendor right here. Now I just create a method or a function name which is a initialization of. Here you can see initialization of window, sorry, this is initialization underscore window. And that will simply, I just write here. So that will simply initialize them. And now I just write self dot master node title. So this title means that this is Button badger. So this is changing the title of our master registered. Remember that? Now? I just go to that dark, dark peg dramatically matter. We will learn all about the geometric method and a separate sections. So here inside geometric method is both. So this measured is allowing to take the full space of the group. And then here I just write that this is expanded up to one. Hopefully you understand now. Now I just write that this is Quit button and which is equal to button to hear. Just simply said the button in this initialization of window mattered. Then her eyes right? Self and felt, which is equal to Harris, write text which is equal to quit. This is just like an action, VR. And our last example we provide that we are just simply destroying this action. But here we're just doing that. This text is quit to hair is straight Quit button. Okay, our this variable right here, which is dark, pleased numerical method, method, we have three types of humanity matter. We will learn about that, which are Peck plays geometric method, ok? Which is equal to 0 and y which is equal to 0. I just heard this root window. And now I just said the size of the window, which is geometry. And then 400 X 430 into this double quotation. Hopefully you understand now, now here, right, that the app dot, which is equal to window, or sorry, this is yes or no. And then here print this app and to the window R2P. You understand now, okay, this is a small window of time. Now we just run this code and we will see the expected output. So here we have an adder, which is the line number 17. And here I just write ab. This is root. Sorry, this is the error again. Suv are clearing our error rate here, which is instance mono R3 initialization of window. Here I just write capital W and capital W right here. Okay? Run it again. And you can see here our detection is performed right here. Here we see a few new concepts. Fosters a first thing here we see a few new concepts with our initialization defining a function. So let us describe it here as you can see, dark initialization of window concept and find an error in dismantle as well. Firstly described this. Ok. So we have done this well in the word of the window making what we might normally refer to as the window. It's actually correctly card frame. So this is just a calling of frame. So that outer is that people are generally called a window is actually the frame apparent fan now, so before this exam, we actually just create our button. And we know that was a theme. That was the same thing what we done right here. Okay? But here we just add only the functions right here. So once you have the frame, you need to specify some of the rules. We will learn about the frames in our next lecture as well to the text. Major thing we will see is initialization of this window right here. So function in our window class, you can see here, this is our class off our windows. Here we give the window as title, okay? This is just a name of the window. Then we can see peck, this all cord. Okay, so I just used here a peg geometry mattered, but here you can see alpha is just use a peg geometric method. From there we can create button incidence. You can see here we are just creating the button instance right here with text on it, which just says that this is the Quit button. While TkInter is a very basic and simply symptomatic coding language. It's something, it's sometimes feared that it is. Simplicity is very confusing to the program. And remember that character simplicity is very confusing for the programmers. Sometime, at least for me as well. I wondered how we actually get grip written on the button. Surely it would take a lot of work. But about making the button go up and down like a button. All of this is just blend and for us, so when we sit, tags dot quit. Okay, that really all, Hey, all you have to do and Tkinter handles all of these respite. Finally, then we are done creating this button incidence and placing it on the window. Helps you understand. Now, here we have the geometric method which is a coordinate, which is x axis is 0 and y axis is also 0. This can also be good confusing. You can see that this is also quite confusing because we have 00 make people expect the Quit button to be at the lower left. You can see here, this is the lower left. Okay? So it's appear at the upper left when it come to the computer design, just like CSS or here we have the 00 means as this is the upper left. You can see here I just define this 44. So here we just see the new position of the button. And you can see here, if Sean's to us that like this one. Okay. Hopefully you understand now. Now how it moves down and up. You can make any of the thing with this button. So I just set it 00 again and then run it again. You can see here these buttons come to his own side. There no gap between that. Hopefully you understand novice according example, this might be confusing, but don't be confused here we had a method to writing our gordon king Tr, which is one of the simplest way you can see here. This is very simplest way. Both buttons work, same, quit and quit, okay. Materializes, didn't define this command to the distributor. Here are just simply give it the text if you want to give this command to this button. So it simply write discipline. Okay? And you can see here they're button will be quite boat buttons are theme you can see here. But it's up to you what you are using. Hopefully you understand now with the both concept of the Tkinter buttons and the frame, we will learn about the frame and next lecture as well. If you find any of the problem regarding to this lecture, please let me know. I know this lecture is confusing for you because I just used two concept right here. But if you find any of the problem, please let me know and thanks for watching this lecture. 17. tkinter Frame: Hey guys, welcome back to this lecture. In this lecture we are going to the frames in the Python Tkinter Library. The frame budget is very important for the process of grouping and organizing other wedges in somehow friendly way. It walks like a container, which is responsible for arranging the position of other wedges. It used rectangular area in the screen to organize the layout and to provide the padding of these budgets. A frame can also be used as a foundation class to import complex valued. Let us see the semantics of the frame like v. How FOR M is a representation of the frame just like if you want to give anything. So this is just a variable to that frame. Then the frame, Frame is a keyword right here. Remember that then we have the variable of root streams to simply give the root. And then we have the options right here. Any options that you want to give. So the root x represent the parent window. Okay? And then Options here, the list of the most commonly used options for the badger. These options are anything, the key value pairs and the separate of commerce. This is up to you. We just go to the example of this frame. So here I just import Tkinter, import everything from this Tkinter library. Then we have the root which is equal to T K, and T is a capital here and Ks is small. Then we have root dot main loop. This means that I just created a simple window right here. Now we'll just set the frame to the debt window. So frame which is equal to, I just write here, frame. Frame is just like a variable and this frame is a keyword of the frame. And I just bring this frame into the root screen. Then her eyes right frame dot pack geometry method. Okay. And this is frame which is unpack geometric method. Then her eyes right? Bottom frame, which is equal to frame. I just said, the bottom frame into the frame and set this frame into the root screen. Then bottom frame, dark patch geometric method said this panchromatic method and Harris, Right? This is the side which is equal to bottom. Okay? This is just a size. What games do? This frame book. Hopefully you understand now yet so far. Now i just print the button here, so we have the red button here, which is equal to button. Okay? Now here in this lecture, I am just giving some of the colors to this button. So text here which is equal to, I just write here which is the red. And then here I just write that Fd. So here F G means for ground. So foreground means this is simple. You just want to give it the color. So this will change the foreground color of the text. So here I just write foreground is read. Hopefully you understand now. Now here I just write that red button dot peg geometric method. I just said the peg geometric method into it. And side which is equal to left. Hopefully you understand now when this example now we just run this core and here as a frame. So you can see here the how the frame right here. And I just said one button into the frame, and now I just copy this button. And here I just write this is blue button. And then here I just also write blue. Then chain the text into the blue. And here also I just write that this is the from the Corps as a frame. So you can see here we have a blue button also. So if you want to give it one another button as the black or any of the button you want to gave it simply just change the positions and the values to it. So here I just tried black. You can see here, if you want to give it the size, add as a bottom. So simply give it the size of the bottom so that frame will become to the bottom. And here you can see Peg geometric method and the size is bottom. And here I just said the bottom frame. Okay. So we're at the bottom frame. Yes. Hopefully you understand now, you can see here that will come into the bottom of the frame. You can see here. So this is just example of that, how you can work with your frames in Python King tour. We also at some of the other things, which is button as well. So you can see here, if we have the EMG color is back and we are just defining the actual ground E2 background, active background color, which is equal to here. I just said that this is the white. So let us see how it would look like. So you can see here when I just click on this button, so actu background color is white. If I just write this one to that button, and here I just write that that background will be in blue and the background here is I just write yellow. Ok, now, just run it again. So when I just click on that, blue buttons for my active background is yellow right here. This is just how we are working with the Python frames. Hopefully you understand now that how we can positioning our registered in the Python frame. If you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture. 18. tkinter Canvas: Welcome to this lecture. Here. In this lecture we are going to talking about the canvas wedges in kinda the canvas ledger supplies the graphical facility for the Kingdom. Amongst these graphical objects are lines, circles, images, and even other vendors. With this value, it is possible to draw graphs and the parts, create graphical editor, and implement the various kinds of customers that I do. We demonstrate our example late here. They're just see that how to draw a line, draw a line. You just create the methods. So the matters VIV how the coordinates and the options. It is used to draw straight lines means the coordinates are given like a four integers number. Like here. We have X1, then Y1, then we help X2, Y2. Here, I just draw a straight line, like here. I used to draw this. And then here I just blurting the drawLine. Here, I just draw a line, okay? Or I just remove this and I just draw a line like this one. Ok. Hopefully you understand now and this is very much clear for you. Okay? No, I just see legis CV how X1, Y1, and X2 and X2 lives a CV. How to plot y, which is equal to five minus 2x. So what we do, we do like 05. What is this? This is the value of x. Then we are protein one, n three, then 21, and then three N, one, where I just give it a display views. Because here 12345, like this one, and the same here, minus one, minus two, minus three, minus four, and minus five. These are our class values. And these are also our minus values like this one, okay? Minus 12, okay? So I just don't like this one, so this is minus one night here. Hope Tyrian stand up using just a graph or digest dendrite here. This is a little confusing for you, but don't confuse. This means that the lines goes from the point X1 and Y1, okay? To the point x2 and y group. And there's a CV, how X1 right here, y one right here. Then here I just write this as y two and this is x1. Okay? Sorry, x2. Upper these coordinates, we are follows. A comma. It is separative list from the additional pedometers, which may be empty. Set. For example, color of the line to the dispassion, which is vital any color. So we are just simply geared. The coordinator slave, this one like 47604 group. This means that this is a green color. Ok? So this is just a coordinator sport I just done right here. Hopefully you understand now we just go to the coding example and we will see that how this handless working according example orbits, real-life example. For that, I just told you that the canvas is used to add the structure graphics to the Python application. It is used to draw the graph and the plus to the Python application. This is just a work what Canvas residue here, I just write that from Tkinter. Import is tearing. Okay? Then we have top which is equal to T K four. You just write that here. Root which is equal to p k. This is up to you. You can write any of that thing. You can write Python here. Let's just run our program at Python. Then either decide python dot geometry. And then here I just write 200 x 200 or you say that you are just writing 400 x 400 right here, or you just write 600 x 600 right here. This is up to you. So this is our just a variable for printing or creating our screen. Here I just write that top dot, sorry, who dot? Python dot Min-woo. Why I just write top and the root here, because these are useful words. Okay? Then here is right, c, which is equal to canvas. Canvas. Canvas is a keyword here. Dan Harris, right? That Python, then BG. Bg means they're representing the background color of the panelist. Okay. Here's this right background color is green. Okay? And then I decide this is a height which is equal to 200. C dot. Okay? This is just a PEC met. No, I just run the score and the cannulas. So you can see here, might this canvas is printing up goo, goo 100 x 200. If you wanted to bring this height as a fixed 100. So that will fill the screen. And then it again. So you can see here that we fill up this screen. You said just a hype naught. I just said the bread right here. Okay? This is up to you. You just set any other thing right here. Now, this is a simple canvas work I just print right here that I just told you you can write the images or colors for the handbook. Headloss? No. We just setting up the AAC or via just cleaning up the with the help of this cannulas measured. Here, I just read that OK, which is equal to C.org. You can see here. Then I just click on this. Create Are you just said the key ID bitmap. Images clear two lines, create Allah's polygon, create rectangle. Text, windows abstractions is up to you. You can write any of the things, but I'm just shooting OK right here. Then I just said the coordinates. Here, I just write pen. So if I have 10, one hundred, fifty, two hundred and this is just a law that was an idea. What I just told you in my last example right here, that these are just of unused lake here. We just 510 and then 150 and then 200. This is just a place with that. Okay, helps you understand now. Now here I just said these values and now I write here that is tar, which is equal to 0 or from 0 and extend up to 150. No more than that helps you understand now, and this is filled with equal two. I'm right. Or you may say you just right there, black, this is up to you. So I just started this light. No, you just run the program again. So you can see here, this is our simple just computed or just making right here. So I just heard this 200 x 200. And then you are the thighs which is 200. And then again, and now you can see this arc right here. Helps you understand now, if you change the venue lake here, I just write plenty. Close run it again so you can see here the size of this one. And I just said that this extend up to 160. So what I've just done, alright, here. So this is extend up to 160 or 100. So that will extend up to a 108 discipline. You can see here, this is up to you. You can do anything with the redact cannabis budget or with debt. Ok. Hopefully you understand all Window help of this example that how we can create the arc with the help of this canvas reading. If you want to draw the line. So what will you do? Here? You can see there I just draw a line which is equal to C dot create. And here I just create the liner. Sam Harris write 1010, two hundred, two hundred and then heritage, right? This is Phil. This is equal to 0, which is equal to weight. Helps you understand now, notice run it again and you can see here, this is just a land what I just draw it right here. You can see here, this is just a line. What I just draw helps you understand. Now, what is done here is you can see here, first of all, I just create a painter Martin, then printing this is green. Then Python said the Geometric setting, which is 200 x 200, and this is a geometric size of 200 x 200. And then I just create a variable which is C is equal to Canvas. For Canvas is our keyword, which is represented with capital C. And then I just set this canvas. You include this Python hoops green. The color of that foreground is green right here as you can see. And this is a high doc 200 pixels, or usaid is at a height of 200. Okay? Then I just said the arc, so this is our arc, okay? And then here I decided to see the art and said the coordinates of this, this is the start from 0 and that will extend up to a 100. So you can see here this is extend up to a 100. Phil off. By. Then I just draw a line which is c dot. Create the line you can see here I just create a line which is 1010 to a hundred and two hundred x, which is also filled, right? You can change that color is up to you, and you can change the color of r. So it's up to you. You didn't give it or any of the ColorBrewer. Hopefully you understand now. You just set your images also work for images. You just simply set the file name, okay? Then which is equal to you just set the photo ME like this one. I just tell you. They're Harrah's uses simply like filename was equal to, then you can write for two image and make our keyword. And then you just said simply the file which is equal to and gave it the address of your pile that near you or file is located. Okay, then how, how you can send the canvas to your in this picture. Then you would just dig Lake. I just take IMG for this additional image as a variable. Then Heaviside canvas, and then heritage site. Create underscore line. Okay. Whereas red cleared underscore line, like this one. And you can be there in any of the coordinates like you say 1010, then heritage, right? You just write most anchor man uses smoothing the most anchor your career picture. I'll just clear this. Okay? You see you are most Anchor. So I decided this is any, for this simple constraints of the PK enter or you may say this is shocking to okay, then heritage right image. So simply provide your IMG, which is equal to finally, okay, this is just a representation of the images in the panelist. Okay. Hopes you understand now. So I just commenting this okay. Hosts, you understand now with this example of the canvas, if you knock, please let me know angled annual the plant you are not understanding the disk cannabis legend. Please let me know and thanks for watching this lecture. 19. tkinter Checkbutton: Hey guys, in this lecture we are going through the check boxes or the check buttons in Python. Checkboxes, also known as a TIG boxes or big box. Or you may say that this is a check boxes. These are the veterans that permit for the user to make the multiple section from the numbers of different options. This is different to our radio button, where the user can make only one choices. But here you can find the books like this. This, and this. Here. As you can see, I just write here that this is the Python language. And then C plus, plus. And then here you just write Java. So you can take the multiple options like take, take, take. Okay? And if you do not want to select with somebody, even this is just a different like the radio button. We will learn about the radio button in next upcoming lectures, which is shown like this. And when you just click on there so that option will be appear to you. You can select only when options in the radio. Buttons. Usually checkboxes are shown to the Shawn's on the screen. As I secure box, as it just shows to you that can contain whitespaces for the Poles. For example, if the checkbox is not select for box will be look like. You may say that this is a empty box. A caption, and describe the meaning of the checkbox is usually Sean had just into the chat box. The state of the check box is changed when the click on the mouse on the box. Instead of this checkbox is changed by the clicking the mouse on the box. Or alternatively, it can be done by clicking on the option or by using a keyboard shortcut. For example, you just select I space bar. So it will chat. No, we just see the coding example of this check box and we will see that how these checkboxes are work. Now, here I just import a library of ProM TK intro. You may say that the king tr and imports tag. Then here, after that I just write that average is equal to K, K. So here just import the simple TK to make the screen. Thereafter that here I just cleared the main loop. Okay? This is how we just create a simple screen. Costly. No, I just create a variable number one, which is equal to I stake in war. So I just take integer variable right here. So into our mean integer variable. Then I just write the check button. This is another way to write your code. Remember that we are not using our old syntax right here. Okay? And then I write here that here, App. And then text which is equal to Python. Okay? So this is the simple text to our, this checkbox button. Or you may say that this is a check button. Here you can see I just simply select the keywords of check button to printing our check button onto this root screen. Okay, here textbooks is equal to Python and then her eyes, right? Variable, which is equal to variable number one, helps you understand now, okay? Now I just use a geometric method. We will learn all about the numerical methods in our next lectures. So here just make a concept, okay? So grid geometric method, I just told you that there are three types of geometric method, which is a place pack and good geometric method. When we are just writing the grid geometric method. So we need to define the rows and the columns. So here I just write growth, which is, It's tricky and a sticky which is equal to w. So here, the spelling of this is tricky, right here is taking y is right. Ros, which is equal to 0 and sticky which is equal to W. So when we are just using the gluteal artery methods with sticky tape, a very important role means that the master record is split into the numbers of rows and the columns. And each cell in our resulting table can't hold up value. Just create the valued and use the grid method could tell the manager in the rows and the columns are placed on them. That's why we use this is T, W and here, like rows which is equal to 012 or anything. So this is just for defining the various controls on, such as buttons, text, boxes, and any of the GUI application you just use a sticky w with a good geometry methods helps you understand now. So let us come to our coding example again. Here as you can see, I just create a Post Tag button, and here I have only one button right now. Now I just run this code and the Tiki button. And as you can see here, this button is shown to me. You can see here when I just click on that. So you can see it is clicking. You can see this is a check button you missy. Okay. Now we just create one another button and we'll show you that there is a variable number two here. So if I just go to here, sorry here, I just tried variable a2 and then check button which is printed on the app screen. Okay, and then tact, which is equal to here I used right there, this is the Java. Then I just cleared a variable number two is grid geometric method. Personally, I just define the row number 0. Now you see, and I just run this course. You can see here these both rows, r. You can see here. Or I did that. I just told you with the grid geometric method, you just declare row number one. Now you see it will come to row number one, row number 0, and row number one right here. If you do find that on number 234, so that will come in this sequence, right? This, OK. Hopefully you understand now with this example of this python tag buttons, yet so far our program is not ledger. See again, here, I decided that after this check button. Here you can see I just define the text to these check buttons and this Tag button text is shown to mean. You can see here, you can also define the liberals do your check buttons. But here in this lecture we are not go through it. But you can see here I just write button, OK, button, which is printed on the app screen. And here I just read the text to this button, which is equal to I decided here this is a quick button, okay? And then Harrah's right command or a heritage, right? This is our show button. Okay, not, we are just quitting because we already go or discrete button. So there's no need. Then I started Show which is the c'mon. C'mon here is equal to i right here at dark. So or, or sorry, here I write underscore the stairs. Okay. We're just taking the stairs right here. And then harris Red grid, and then rho, which is equal to four. Or we have the rule number two. Okay? And then here you write is Tikki, which is equal to w. Ok. You just also write paradox or paradigm birds here is no needle that because we are just using simple right here. And this is the sticky capital w. Okay? Now here you can see I just create a function which is law states. Okay? And now Harry said that, print that. Learn that here I am inside Python. Then here up to that I'm just right there. One land break here. And then I described that Java then stored the address of that. So this is personally signed. You know that this is just for storing the address. Then take the modulus here and then one. And on dark get. So get here variable number two. And then if the value will match with the value number one, to get the value of the variable number one. And if the user presses the ready number two. So just to give us the values of the variable a2, then the core. You can see here. Now you will understand clearly, as you can see here on his clip on Python and click here. So our Python is shown to us. You can see here, which is clicking. This is you can see the Java here it is 0, then you just click on Java. So you can see here I just click on Java as well as Python. So how scum as is defined example right now, here, as you can see, I just create a function. Okay? I just divided all the quarter. Now you can see here, sorry, here I discloses. And you can see here, this is the code for plus button, okay? And then this is the code for second button. And this is our, Exactly this shows but I'm now just see, okay, here I just create Python Chegg button. Ok. So this is come in here. I just create a variable number one and take the integer value. Okay? Then peered this Python button right here and print it, printed this button and blue and green text for this button as Python. Then as state variable number one right here dot GridView shows our row number 0, which is a sticky W. Then this is a known number two, which is a sticky W. Text here is Java and then printed on this app screen. And this is also chegg Brigham computers standoff. Knowing this Create button right here is our this value. If this is check or not, then I just click here. This only shows that button. Then command here. I just take from this function. Here I just create a function images a variable states. Then I just print that. If this is printed, if this is clicking on Python two, simply click Python L. So here it is simply by mistakenly died Python element. This is not a Python Elvis's. You stop five. Hmm, okay. Then I just right click when somebody is click on that to store the address right here. After that, click on someone, click on Java. So simply give us a desert of Java right here. And it is true that address. And this is a single-end rig with the help of slash, en slash, any use for a single LAN break. Then here I just write this is the marble. And then Variable Number one, guard the value and then vary the Manku guard the values. We simply set the getMethod. Hopefully you understand now with this example of the Python Check button, if you're not, please let me know and thanks for watching this lecture. 20. tkinter Entry: Hey guys, in this lecture we are going through the entry measured in Python. Entity legit are the basic methods of King to use to get the input. For example, text string from the user often obligation. This register allow the user to enter a single lens. That's here is example of the entry measured that this is the entry box. And here the integral, these are the number 123 volts, say this is for first name and last name. Hopes even standing up. Here you can get single lamp X only. So if the user is interesting here, which is longer than the available displays, this of the veggie, the current debt scroll. This means that the string cannot be seen in that impede. The arrows keys can be used to move the invisible part of this lake here you are adding the Gou long strings would there could move like this one. Okay? There could move through the entry loss. So you have to use the text budget if you have the longer pets are unlikely to land tax. For that purpose, you use text legit. Okay? And that extra edges is another way that we will learn about that in upcoming lectures. Play anti-religious is also limited to us single form. Remember that? Okay, you can also add a single farm right here in the incubator novelist CDO coding example of this and see that how it's worked. So here it is right from Tkinter import here. This helps you understand now that I just import everything from Tkinter knowledge inside that app which is equal to t get simply i just create roof screen here. So average is equal to min of Xun stand. Now, now if you write that here, AB dark geometry and the geometric size here, I decided that 400 x 400. Okay? This is just a geometric series right here. Now here I just defined the integrated. I just cleared the incubated rate here. Now you see how the legit right here. You'll hear I just write y1 for the variable of incubated and then heritage site entry in G is just a keyword for the intravasate. Then I just write here App. And then here is a text which is equal to i right here. This is firstname. Hope, so you're instead now. Then here is y1, nor did you. Okay? And grid here is rho and rho which is equal to 0. U is also a geometrically rigid. We define the columns and rows. Rows and one column number here, just defined polymer, those number 0 and the column number one right here. Okay? Now, I just started this into legit. And you will see that this is my interior legit right here. Okay? Now, just see one other example here as right in gene number two and then in GI number right here. So the row number one. And the column number one right here. And now you just see how the two entry box right here. You can see here. But then I just write on this. So that will also write the geometric BU, Y. This, this is because you can see here I just dq the number one legend. And then I just define that text, which is a Pacinian right here. So here as you can see, I just said that this entry wedges is only printed into this screen. This is E1 and E2, N2. And try it again. So here when I described this to simply, it will not give us the values of x2 like here and here. Hopefully you understand now with this example. Now, here, if you want to bring this lake here, you didn't write the interview entered as the username right here. Why this is just because if you add the text with that, so you can use the liberal view about the Lebanon next upcoming lectures. But here just make a concept hit L1, which is equal to liberal, is a keyword. Hope soon start now. At is equal to hex and detects which is equal to hear you say that this is first name. Okay? Then I started that for the engine number two right here. This is the last or last name. No, starting to score. And here I just didn't find it goes all full. Here I described that this is dark and one door Purdue matching method. And the glutamatergic matter here is right there. This is middle number 0 and the column number one. Let us check it. So here you can see this is row number 21, node C. So here I started there, this is number one and the column number one, and this is row number 0 and the column number 0. Okay? Then here I stayed. Nibble number two. Ok? And then simply defined as liberal lumber, boo and integrate here. And then here I said this is the number, call it number one and number three. Now you see the name and the last here I just write firstName is Python. And the last name here is also applied. So this is just we are creating the entry measured in by Tom King. Hdr helps you understand. No, no, I just explained more chord. So here I just simply see that this is a farm PK enter or import is tight. This means that import every molecule from the Tkinter ten here, abduct Tiki, and then have a loop here. This means that a normal size of this screen ikea posterior stand now, then AP dot match even just humanity size of 400 x 400. Okay? Then here I just skied into number one and then into number two. This one. Certainly number one is our entry Volkswagen and into books and look good idea. Hope soon stand now. Then I just create these labels and set the rows and the columns, do it so that reset like this, helps you understand now with this example, if you're not, please let me know and thanks for watching this lecture. 21. tkinter Label: Hey guys, in this lecture we are going through the Python painter label. The label is used to specify the container box where we can place the text or images. This measured is used to provide the message to the user about other wedges used into Python application. There are the various options which can be specified to configure the text or the part of the pet Sean's in label. Let us come to the example. We will see the text of the label that how we can define the label. There's a CV, how LBL is a representation of the label, the variables. And then we have the label as the keyword. This is just a label right here. Writing our level as a keyword, then you how the Master or rude screen. And after that, you have to add the options to it. So this is just like send text of the label. What we are just working with. Now we see the actual code of the label that how we can clear the label. Here, I just write that from Tkinter import static. This means that import everything from the character library. Then we have the root decay TK. And after that I just created this root screen. So rootNode main loop right here. Now here I just write LBL is representational of the label as the variable. And then here I just write label as a keyword. So label as a keyword, I just print this label into the roof screen. And then here I just write text which is equal to it is right? By Tom label or a Harris write Python of course, helps you understand now, or label is configured right here. Now here is right, that label dot and geometric method right here. So here I just simply pad the geometric method, run this code. And you can see here our label is shown to us like this one. And this is just how we are just creating the liberal with Python King term. Now we will see what are the example of the label, and we will see that how we can feed the label with the textbooks and the button. Now, you can see here, here let us see how a simple label, which is username. So you name is a representation of the label, right? Username here, which is labeled and here it's red label is printed into, into the room and then pecked, which is equal to here he's right. Username. So user name right here. You can also write the pleasure matter method or Peg geometric method with this one. Here I just use pleasure my tree method with another example. Then x, which is equal to 30 and in y axis and the position of this level is 50 right here. Okay? Now, first one level is for username. Then I just write this four paws work. So you cannot write Pos here because POS is already taken by the Python library. Then root, which is equal to. Here I just write that this is possible. Ok? Now this is 50 and the y-axis, 90. Simple is that. Now her, I just write submitButton to creating the button right here with the labels. And the textbox. Boxes, which is equal to button, is a representational of the button right here. This is a keyword. And then I just print this burden to the router three. And after that, I just gave it the text to this button which is equal to this right? That submit obscuring stand now. And then I just write that this is the actual background, which is equal to, we just simply said like do background is blue right here. Now, actual foreground. And act to foreground here is I just write that this is white. Okay? Simply said, the pleasure matching method and Harris write X which is equal to 30 and y which is equal to 90. Or Lydia just define this. Soil is right, this is 20. Now Y1, which is equal to here, you symbolically the entry box. Then print this entry and to the root screen. And Harris, right, that this is the VD is equal to 20. And then Harris write Dart plays, you might actually method, which is ak is equal to a 100 and y which is equal to 50. Now, just create one another. Injury walks for the entry number two right here. Simply run this code. You can see here my disposition is shown to me. And this is not why this is not because we are just writing the same values. Close, run it again. And you can see here my this court with the entry bolt and the label is shown to us. You can see here, this is the active foreground color, which is the white. You can just click on the active background so there's changing the color right here. Now I am explaining the core. Here you can see I just write from Tkinter and import everything from Python king to leverage. Then here I just cleared the screen with the help of r2, which is equal to p, k and Foo.main Luke. Here we have defined our core and with the help of core, we are getting this output plus v. I just defined the user name as the label. Then I just print this level into the screen and then set this username idea. So this place geometric method, or like 3050 is like this is x axis and y axis. So simply explaining the value like this. And then password as well. Both labels are same in work. Then here I just create a submit button. So Submit button is just a variable for the button. Then print this burden under the root sin and then submitted. This isn't just a text. Then here I just tried to background color when you are just clicking on the Submit button. So assuming this value, value or exchanging his color. So E2 foreground is white. Linearity site, please, which is equal to 31 print D. So some police or the place you can see here, x axis 30. Here we have 30. Then here I just write 50, then 90, and then here 120. And next time we will write 150. Simple. And then I just define the entry books. You define that into books right here to getting the user input. Here is also printed on the 5090 right here. You can see here I just create y1 is a representation of the NGO variable and then print this intubated congruent screen. Then you can also increase or decrease the virtue of this. And to measured and then set the blade geometric measure like a 150. So hopefully you understand now with this example of the label, if you're not, please let me know and thanks for watching this lecture. 22. tkinter Listbox: Hey guys, in this lecture we are going to talking about the Python King turtle is box. The list box budget is used to display the list items to the user. We can place only the text item into the list. And all the texts item contains the same forms and the color of the user can choose one or more items from the list, depending on the configurations or what they needed. The list box is just look like your list, like our dropdown list. So drop-down list is something like our dropdown buttons. So here list is just like a Sean's dwarf, like here we hope P, l, m. And then, and so here you can see these are the list of lines, okay? This is just the example. Now we think we can see the coding example of the lift and we will see that how this list box is working in Python. Here, as you can see, I just import form Cantor and import everything from Tkinter library. Then her eyes, right, who vj is equal to p k. And then label. Or sorry, here I write list box, which is a presentation of L B is equal to her eyesight Lisbon. Ok, so let's books and just keyword like other wedges, which is printed onto the screen. Now, how we can insert these values into the list box. Now simple, take the variable of Lisbon, then you just simply died dot and insert operator. Observed operator means uses insert the values. Now Heritage Site 121 here is the ordered list of that, all the elements we are just inserting into the list box two hertz plus b. I just write that Python. Okay? Now you can see that here. I just simply run my core and the list box. And you can see here, sorry, I just not printed into the row dot Min Lu. Sorry, this is Rudolph main loop. Okay? Now is from this. And you can see here, I just simply get the output yet now. Now LB, Nord peg geometric method. Okay. Now it will give me the output, stop all the programs, and then run it again. So you can see here, this is simply the list box of one element right here. You can see here. Okay? So after that, I just copy this. 1-2-3, 4-5-6. Simply geared the orderlies like 2-3, 4567. Okay, here is write C plus plus java, C programming. And then after that, the horizon right there, this is PHP. Then Harris write JavaScript and add the last terrorists write CSS. Simply ages provided the element to this list or beta, ooh, this list. So here when it is run this score. So as you can see here, by this lift is shown to us like this. You can see here, here is right that form Tkinter import static. This means that import everything from the Python Tkinter library. Then here I just create this green. And after that I just defined the list right here. So this is just a list box like LB, which is equal to Lisbon as a keyword here. Okay? Now how you can add the element to the list, simply write the variable name, but you are just declaring right here. Then said the door and insert operator turns into Britain means you are inserting the values. So this is the value number one, then two, then three, then 456, and add the last. You have the salmon values. So it will come with the order list right here. You can see her at first the edges, right? Python than C plus, plus Java programming language, than PHP, JavaScript. And at last, we have the C CSS. So the numbers, there are the numbers of options which are used to change the format of the vetted of lists. The numbers of the options can be passed as a parameter separated by comas from some of them are like you can highlight your colors. You can simply set the normal background's color with the help of BDD peg. And then we can set the font color. You can add the images. You can set the width and the height as well with the help of these parameters like highlight colors, bd, bd colors, and forms images where ten, height. Hopefully you understand now with this example, if you have any problem regarding to this lecture, regarding any of the lecture, please let me know and thanks for watching this lecture. 23. tkinter Radiobutton: Hey guys, in this lecture we are going to talking about the Python can call 3D button. The radio button measured is used to implement one of many selection in the Python application. It shows multiple trials to the user, out of which the user can select only one of them. We can see a different methods with each of the radio button. We can display them multiple line text or images on the radio button to keep track the user selection. The radio button. It is associated with a single variable, but each variable display a single value of the particular variable right here, means that radio button, you can select only one option only. Now we just turn to the example of the radio button and we will see that how we can work with it to import and steric. This means that I just import everything from the Python Tkinter modules. Then here I side group which is equal to t1. And at the last I just write that this is simply the main loop or rho dot main loop. Now here I disappeared the variable like I just write a which is equal to integer variable right here. Okay? Now Harris, Right? Radio one, which is equal to, or you may say that this is the radio button symbol. Then this is printed onto a screen. Duty button is just our keyword right here. For the representation of the radio button. Then I just print this group butter and sorry, radio button into the routine. And then Harris write tests for text. Here is I just tried there. Python. Okay. This is a simple text, but I'm just printing with the rule burden. Then here is right variable. And the variable here is I just write variable right here. Then I just write value which is equal to one. Okay? My work with the radio button is completely idea. Now just simply write the peg geometric method and add the last slide that this is the anchor. Anchor here is w. Ok. This is my radio button where it is what I just created right here. Now I run this code. And you can see here by this radio button is computed here when it just click on this distributor, this is simply yep. Now you can see right here the magnitude you burdens, okay, like here is very Java, C plus plus and PHP. Javascript, CSS as PMO, SQL. And note on it again to see how you can CV how the multipole of options, but we have to select only one right here. You can see here, when I just select this, all, you can see your Python. So it is all the values are selected right here. Why? We didn't change the values right here. Like we have a value number two, value number three, then four, then five, then we have one new number six, then seven, then eight, and add the value number nine right here. Hopefully you understand now. So I'm just make mistake only for you that you people are understanding because we didn't change the values of these L. So we will get all items are checked. You can see here now we can select only one items. Helps you understand now, you can see here. So this is a simple example of that would create the radio button. And how we create the radio button. To understand how this example, if you not, please let me know and thanks for watching this lecture. 24. tkinter Scrollbar: Hey guys, in this lecture we are going to talking about with the byte Han came to earth codebook scrollbar Rudyard is used to scroll down the content of the other letters like Lisbon, hex and the kind of ofs V can also cleared the horizontal is called bar to entry the value. Let us see the coding example of this whole bar. And we will see that how this Kohlberg works. I just gave you the example of this 4-bar that how this gold bar work, like your eye and just pressing the enter button. And the third option is to use discard this cold bar. Now we just turned to overthrow the example. So I just write that from Tkinter and import is Tarik edges will this library is for import everything from the Python Pinker. And then here I will peaking. At the last, I just define the main loop. And now here we will define the concept of the scrollbar. Now, S L is a presentation of the scroll bar. And then Harris, Right? You scroll bar as the keyword Copernicus scroll bar into the root screen. Okay, so I just rented a scrollbar and do the routine right now. Now here I just defined as L is equal to 40, which is dark. Config placed him poorly configured this scroll bar. And then here I just defined the commodity which is equal to and now I just make a command right here. So firstly, I just simply define the command line for line in rent, which is equal to, I just write a 100 to simply define the range right here. And then here I just redefine that. The command like here, I just defined the Kmart is list, which is equal to this box. Okay? And then I just bring this list box into the why is called Kamar twice cool commandment is on y-axis, idea means top-down. Then, which is equal to, I just write here is set up syringe stand now as an unordered set. Okay? Now here I can define the Kumar dot why view. Okay, continuing stand now. Now I just write that after this command, I just go to Big Data dot peg geometric method. And then harris re-defined the side which is equal to. And here is, this is fill, which is equal to both the side. Ok? Now, i is defined as L, which is equal to four SL, which is the panchromatic matter. And here is defined that this is the thyroid and psi, which is equal to right here. And then this is fill, which is y. Now do you understand now with this example, ok. So after that, I usually find that here I just create the list which is equal to, sorry, after that here I is defined. The list box right here, which is Dorothy set and now here, because I'm just a little mistake right here. So as defined list door, simply insert operations. Okay? Now I just write that this is n. And here it is defined that this is by Han Tkinter. This is Python character. Then I just simply concatenate SGR, which is defined that line. Sbir means the string. And then the string here is only the line. Now, I just explained my chord right here. As you can see here. Firstly, I just defined Prom King tour and import Derek. Then I just write that rule which is equal to p k. And here I'll just make a root three. Then I just drink as L. So this is SLS, the variable of this scroll bar, which is printed on the screen, like this is our root screen. And here I just simply print the scroll bar right here. Okay? Then I just said this geometric method as a peg geometric method, we just side on the right. And this is filled with y axis like topic2, bottom. Okay, my disdain, of course clear. No, I just dig the for loop similarly for printing the values up goo a 100. And that will exert, which is insert the end. And that will print, this is the Python Tkinter and then concatenate this string of Landis means this is Python on late, we are printing the value number one, then one plus 12, then two plus one which is three, then three plus one which is four. And this is up to a 108 year. Then I just said the geometric matter as a geometric method. And the last I just write that as ten means this variable we just configured Kumar, Which is list dot y, and that will shows into the BioVU. Now I just run this code and we'll see the output. So here you can see that I just told you that my disk Ahmad is working like this one that will print the values number a 100 approved. Remove this, as you can see here. And now you can see King TR 12 and there it will up to 9900 values right here. You can see here that we'll add one plus one, then one plus one, then three plus one, and that will up to 90 years of do you understand now this is a concept only for function majority the for loop. Okay? But VR making the is called Barclay. This one hour, this topic is totally consist on the scroll bar what we are just picking. But this is the only value what I just bring with the help of Lesbos and the for loop two, we do not need that. We only need that in this lecture. Who? This is cold bar. What I just make it right here on the y-axis, you can see here helps you understand now with this concept of the scroll bar. If you find any of the problem regarding to this lecture, please let me know and thank you for watching this lecture. 25. tkinter Scale: Hey guys, in this lecture we are going to talking about the Python King tr scale. The scale of agile is used to implement the graphical slider to the Python application. To that the user can slide through the range of the values shown on the slider and the select today, most them. We control the minimum and maximum values along the resolution to the scale. If provide an alternative to the entry measured. When the user is forced to select only one value from the game and range of values. Now we will see the exact example of this scale. And we will see that how this is work. Here I just define from Tkinter import is tearing, okay, then here I just define that route which is equal to t gain observers techno. Now here I just write that this is the main loop. Okay? Now here I just write that w, which is only the scale for the keyword of this kill. Ok. And now I just bring this to scale into the rood screen. Then here I started there. This is the Fromm underscore, which is underscore which is equal to 0. And that will go up to, and that will go up to, here it is, right? 70%. Okay? This is just a value you can define with scales like a 102%, 100% or 300 person. Now I just simply refine the peg geometric method. Okay? So here I just simply refine the scroll story, the skin, which is printed on the roof skin, and the value of this scale is 0 to 70. Now just print this. You can see here we have thus only the scale of y-axis, which is printed up to 70%. Okay? Now we are just making a skill which is also gave us the value of 300%. And that will print the audience on the horizontal. So this is our vertical Orian. And now we are just getting the horizontal bar, okay, now I just run again because scrollbar, sorry, this is not the scrollbar program. This is this skin. Okay, now you can see that. So you can see that the two scales right here, you can see I just take the venue 70 and that will go up to 300%. This is a simple example of this is scale measured in Python Tkinter library. Hopefully you understand now in this example, if you please let me know and thanks for watching this lecture. 26. tkinter Toplevel: Hey guys, in this lecture we are going to talking about the Python kinked her top level budget, which is used to create and display the top-level windows, which are directly managed by the window manager. The top-level veggie may or may not help the parent windows on the top of them. The top-level widget is used. Then a Python applications need to represent some extra information, like pop up the group of the budget on the new screen. Lake here, as you can see when you are just using the yes, no Options. And click on the yes to suddenly pop-up. Menus are a pop-up screen shows to you, which is also calls a warning screen as well. So here in this lecture, we are just creating the top level, the top-level Python king through badgered. This means that like here we are in a root window. And then if I click on any other, so, uh, next window will shown to us. Here. It's our diagrammatical example, like here v, how pokey button marriages press on this button. So a new screen appears to us. Hopefully understand now, now we see the coding example of that lake here I just write from Tkinter. And important is Tarik. Okay, then here I just write root which is equal to p k. And after that I just write Group dot min loop. Here. I just simply create this loop phrenology. No, I just said the top-level into it. Here. I just create a button representation. Btn is a variables, it is button. Then here I just bring this into the screen. And then I just write the text which is equal to, I just write here, Pokemon open is, is just a representation of men. I just click on this button so a new SKNodes appears to us. If you want to give the open, the open or changed with, okay, so I just write here open. Then I just write command. And this command here which is equal to I just write command for open. Open is also a function here. A few understand now. Now I just write that btn is a variable. And then here I just said that this is a place geometric method. If you want to give the players geometric method, peg geometric Metadata method. This is the q, which is equal to 75. Does write that y which is equal to 50. Okay, now here I just simply create the button only when I just run this code, you can see I just create only the button. Okay? Now, you can see that what I do here, I just create a function which is used open. Okay? This open is, I just told you that this is the function here, okay? So you can see here we are, we have the multiple error that we have the open functions as arguments are missing. No, I'm just creating the function right here. And the function here is, I'll just write that top which is equal to top level. Top level is the other legit. Like other legit, this is also. Keyword to representation of the top level. And here is write min loop. Now stop this program and run it again. So when I just click on this open, so you see a new Windows is appearing to us. Hopefully you understand now that how we can create the top-level with the help of Python Tkinter library. This is a very simple way to represent your cord or to set your core as the top level. Hopefully you understand now, if you want to give the title or if you want to give any of the message to this your top level, simply write anything like here. I just right there. This is the text which is equal to IS right here. You press open here. Okay? And that will printed on their app screen, sorry, this root three. Okay. Now closed and open it again. You can see here, sorry, here I have an error right now because I'm just missing some of the continuities right here. As you can see here, I just write that this is the top level route. And then here as defined their text which is equal to this, you're, you press. Ok. Now we have added in, I think, a missed any argument right here. So what is an argument? I just remove this right here and create the label to it. Because we are not just showing our direct message to that. We have to take the message dialog box. But here in this stage, we are not going through the messy dialog box because this is a separate lecture. Now here I just used label which is equal to, I just create a new label, liberal printed on the screen. And then here I just paste this text into the level. Now here I just died labeled or pleasure matter matter and give it a simple placed where we just 75 and on y-axis is equal to 50. So you understand now, now I just run this score when, when I just opened this. So I think so this is shown to us on this screen and Nord shows to us on that. So this is printed on top. Okay. Now let's check it again so you can see here. So what I actually done right here. So this is our root and this is our, another screen top-level, okay? Now you just see the concept of that IS simply important liability. And then create this MP rood screen helps you understand now. Then I just create a button here. So button btn, which is equal to button, to create a button to the root three a1 and add this button into the root free night here. And the text of this button is open here. Just give it a command right now. Now, I just said the plane geometry mattered, which is on 75 x's and 50 x's on y axis. Ok. So here position is center right here. Now just come to the open, come on. Hawaii, I just write this open command here because I just dig a function which is a name of open right here. So this function is for a new window. And that window, when I just press on this button. So this Menlo is appearing to know, as you can see, I just write dot which is equal to top level, which is printed onto the root screen right here. Panel here. I just did this window screen as the top. And this is our a group of children stand now. Now inside that label, set the label to show us the message which is you press open to simply I just said that Brent this level into the top level and then presses the message which is you press Open and then label dot-dot-dot asymmetric meter resultant center and then top dot main loop to print statement here helps you understand now with this coding example, if you're not, please let me know and thanks for watching this lecture. 27. tkinter Spinbox: Hey guys, in this lecture we are willing to talking about the Python can curse pin box. This pen both wedged is an alternative to the introverted. It's provides a range of the value to the user out of which the user can select the one the user used in the case where a user is given some fixed number of values to choose and from it. We can use the various option with a spin box to decorate the battery. Here we are just working on the scientific like from character. And then I just write that import is tearing. Nice Ride that route which is equal to p k. And then root dot mainly bore directly. You want to add the main loop here. Then I just write that rule dot third the geometry size which is equal to 400 x 400. So you understand now, now I just simply write is pen, which is equal to its pen box. It's been box is a key word here which is printed on the routine. And then I just give it the value like from equal to 0 and printed up to, printed up to which is equal to a 100. This is how we work with our last example. Like, as you can remember that like we are just working with scale. So there we are just simply work or simply take the escape. This both values are work thin. Laker. We working with scrollbar and it kills as well. But here we are just providing the values to our pin box right here. Like here I write is pin dot simply pad geometric method. If you want to give it the value like x, which is equal to 50, and then Y which is equal to 75. So gave it otherwise, leave it up to you. Run this code as a PK spin box. So here we have an error. So sorry, this is the place geometric method. If you wanted to add pack to simply leave it blank. Okay? Now it's pen box. And here you can see that. So that values, you can see that, that value, it will take up to a 100 only, but here it will take 1001 thousand. You can see here. But here you can see we are just defining the hundreds values on the debt will not go up to a 100 only because here is a limitations to this button. Hopefully you understand now with this example of the span box, if you want to modify this inbox more, let's just go to the end of the example. Like here. I just commenting this firstly command and the command to, okay. Now just see. Here I just write that. I just take a variable i, which is equal to the double as the variable, okay? You just know about the WOR, evil to take the doubles value. Okay? Now, after that, I just simply take or I just not taking doubled right here. Just going to the Assembly 30 right here. So let's just see that here. I just simply create a variable or I just modify this core as well. This is also a good way to simplest our lecture. Here. I just write that simply defined, which is equal to five. Now we just see I just define the word pair to our sandbox. So here I just simply remove close and open it again. You can see here by this it's been mocked at low size if you want to increase 50 here. So it's been bosses looked like this. So I just said this as the 50 right now. Do you understand now? Now, so for we are just using the place numerically mattered, but here I am just adding the drill geometry method to grid geometric method. I just told you that this is completely work on the columns and the rows. So where does define the column which is equal to o, column which is equal to 0. And then her eyes right that row which is also equal to 0 right here. Now, stop and run it again. You can see here it is up to column number 0 and the row number 0. If you want to add the column number one, and then rows five, and then column number three right here. Stop and run it again. So you can see here, sorry, this is again. So here as you can see, this is changing his value like this one. Appearance ten. Now. Now you can see what I just actually done right here. I've actually done it's been box. And take the spin box, as you may say, this is a keyword. Okay? Then set simply the values which is taking, taken from 0 and that will go up to a 100, no more than that. So you understand now, then you may miss the lagged variable also for that values like war. And then you are getting integer or integer var, or you just starting double dot. I am just take it right here, so double and you just also select the integer var. Then you just select Variable dark. Said the venues have 36 or 360 as well. This is one another. They do add your values like this one to your inbox. Hopefully you understand now, if you're not, please let me know and thank you for watching this lecture.