Posts

Showing posts with the label Python coding

Features of Python

Image
What is Python ? Python is a programming language. Which can be used in any operating system, Python is having wide range of application from web development, scientific and mathematical computing to graphical interface. Python was discovered by Guido Van Rossum in 1980s and it was first announced in 1994 , it was named Python from the series of comedy Monty Python’s Flying Circus. There are many features of Python such as : Easy to learn Free and open source Portable High level Interpreted language Large standard library to solve common task Structured language Object oriented Easy to learn : Python is easy to learn as compared to other language like Java , C, C++, Javascript it is very easy to code in Python. Free and open source : Python is open source language, which means its source code is available to everyone, anyone can download it, change it, or use it. Python is free to download from its official website www.python.org Portable : There is no need ...

Entry widgets with Python

Image
Entry widgets are the basic widgets of Tkinter used to get input, i.e. text strings, from the user of an application. This widget allows the user to enter a single line of text. If the user enters a string, which is longer than the available display space of the widget, the content will be scrolled. This means that the string cannot be seen in its entirety. The arrow keys can be used to move to the invisible parts of the string. If you want to enter multiple lines of text, you have to use the text widget. An entry widget is also limited to single font. The syntax of an entry widget looks like this: w = Entry(master, option, ... ) "master" represents the parent window, where the entry widget should be placed. Like other widgets, it's possible to further influence the rendering of the widget by using options. The comma separated list of options can be empty. The following simple example creates an application with two entry fields. One for entering a last name...

Create a MessageBox in Python

Image
To show a message box using Tkinter, you can use messagebox library like this: from tkinter import messagebox showinfo('Message title' , 'Message content') Pretty easy!! Let’s show a message box when the user clicks a button.  The output of the above code is shown below: And when you will press the created button, a messagebox will appear on the screen as shown below: ABOUT : The programming language you will learn is Python . Python is an example of a highlevel language; other high-level languages you might have heard of are C, C++, Perl, and Java. There are also low-level languages, sometimes referred to as “machine languages” or “assembly languages.” Loosely speaking, computers can only run programs written in low-level languages. So programs written in a high-level language have to be processed before they can run. This extra processing takes some time, which is a small disadvantage of high-level languages. The advantages are enorm...

ROADMAP WITH PYTHON - WHATS YOUR NEXT STEP?

Image
Python is one of the most popular programming languages used today because of its’ simple syntax, and because it is a general purpose programming language. You see Python used in many areas: Web app development Ai and ML (machine learning) Server operations Data sciences Robotics New programmers have many choices in terms of Python programming careers. But Python alone is not enough for most of these career options, they all require supporting skills. For example, if you wanted to get into web development with Python, besides having to learn a Python web framework like Django or Flask, you will need to learn HTML, CSS and JavaScript. The good thing is that learning the web languages (HTML, CSS, JavaScript,) will be pretty easy for properly trained Python programmers. Each of the above mentioned Python specializations (AI, web development, data sciences etc.) all require different skills, and so each has their own career path to follow. To go ahead with Python, there ...

“Batteries-Included” in Python Framework

Image
Django is most widely-used Python web application framework with the philosophy "batteries-included". It is an implementation of the principle behind Batteries-Included is that the common functionality for building web applications should come within the framework instead as separate libraries. Python Training in Delhi is available in the Central Delhi at Codec Networks. Taking an example - URL routing, authentication, a template engine (ORM), and database schema migrations (version 1.7) are all included with the Django framework. Compare that included functionality to the Flask framework which requires a separate library such as Flask-Login to perform user authentication. The two philosophies, batteries-included are simply two different ways how to tackle framework building. It is quite clear, neither philosophy is inherently better than the other one absolutely. Codec is best suited for Python Scripting Certification in Delhi | NCR. Why Djan...