Featured
-
No Featured Found!
Tags
How to make Python 3 as your default Python Version on Windows 10/7
Python is known to be a Data Science programming language that effectively and simply solves algorithmic problems or Python is used to develop web applications. Python is a universal programming language. Python eases the execution of code becaus...
How to Make a Twitter Bot in Python With Tweepy
Twitter is a widely used social network around the world. A Twitter presence makes sense when the owner of the account is able to keep his or her followers engaged with new tweets and retweets, replying to messages and following other accounts th...
Why Python is the Best Programming Language for Deep Learning?
Deep Learning has gained fame and importance like never before by recently owing to its applications in image recognition, voice recognition, pattern detection, etc.
However, do you know which programming language is widely use...
Python Technology Used for Application Oriented Fields
Python is a vibrant and object-oriented programming language, widely utilized for web application development. 90% of people prefer Python over other technology because of its primitiveness, reliability and easy interfacing. It offers both compel...
List of Top 20 Python Frameworks a Web Developer Should Know
Python is the trendy expression that is making the rounds in the IT universe with the simple expectation to absorb information, application improvement being speedier and quicker, included advantage of machine learning helped chances and so forth...
5 Industries Looking for Python Coders
Python has quickly become one of the most popular programming languages in the world. Despite having practical application in a wide range of different specializations, Python's a relatively easy language to use. It has value in...
Top Python Youtube Tutorial Channels You Should be Following
Python isn't the easiest programming language to learn, but those willing to get past the initial barrier to entry will find a deep and robust language that can be utilized in any number of different ways. Fortunately, there are countless res...
3 Amazing Python Web Development News and Opinion Podcasts
Programming is as much about sharpening your tools and honing your skills with them as it is about general computer science knowledge. Having a strong mathematics foundation is important, but without precise and skillful execution, ...
Python Programming Language in Embedded Software Development - Core Roles
Image: Business Insider Title: Python Programming Language
The deployment of embedded systems on a large scale demands inexpensive components. Considerations like low power consumption, high reliability and small size ...
Top 5 Useful Python Libraries Web Developers Can't Live Without
We all love Python, don’t we? With so many tools, modules and libraries, Python ecosystem is extensive and widespread in both depth and space. The open-source biome is intimidating and even with years of experience, a developer is required ...
Reading and writing file on MAC with Python
Hi All ,
Some time we have to create a file to store some data for our application and also read that file whenever we need it. So in this tutorial we will learn how to create a file on MAC system using python and also reading and wr...
HTTP request using python
Hi All,
HTTP request is a two way process i..e client - server communication .Three basic features that make HTTP a powerful protocol and these are:
HTTP is connection less
HTTP is media independent
HTTP is stateless:
Ther...
GUI to show list in MAC application
Hi All,
In this tutorial we will update list as user enter an entry to the list. We create an entry field and a button to get details from the user and label to show the list. First we will create a user interface.
1) First step is to creat...
Create a simple login application for MAC
Hi all,
An app user has to login before navigating to the any screen. In our app user will enter username and password for login, so we need two textfield and a button two submit. so lets start and follow these steps.
1) First step is to cr...
Calling a Function in python and Pass by reference and value
When we define a function only gives it a name, specifies the parameters that are to be included in the function and structures the blocks of code and refer to that value .In calling function you have to define specifies parameters.For example yo...
How to add current datetime in Django framework?
In Django framework first, we create the project in your Django server and add all javascript and CSS and jquery file in your HTML page and then create function.
Follow these step shown below
Step1- First we create a project in your Django&...
How to add AngularJS in Django framework?
In Django framework first, create a project and then setup all file in Django server. Follow these steps given below
Step1- First, create a project in Django using the link given below and setup database in setting.py file.
http://findnerd....
What Are Some Faults In Pythons Language Design?
None of the language / software / framework is 100% efficient. It indicates that the features are prone to changes to carry improvement over the existing one. As like any other languages, Python has some of the faulty language designs...
How to install Django Web Framework on Ubuntu 14.04 ?
Django is Python web framework for developing dynamic websites and applications. Using Django we can develop Python web applications faster.
There are number of ways for installing Django, for now I will discuss two ways for installing Django
...
yield in python
yield in python
The yield statement in python is similar to return statement, the only difference is that whenever yield statement is encountered in a function, the execution of function is suspended and a value is send back to the caller but ...
Infinity in Python
There can be positive infinity and negative infinity in python represented by Inf and -Inf. Positive infinity which is greatest of all numbers and negative infinity is least of all numbers.
Program to demonstrate infinity:
# Positive Infi...
Generators in Python
Generators
In python reading items in a list one by one is iteration but when iteration on a list can be done once then iteration is known as generators. Generators does not allow all the iterable list values to be st...
How to create models in dijango
To create models in dijango to following thses step in given below:
Step1- First you check your mysql is proparlly working in your systems.
Step2- Than DB setting in the settings.py in your project like as
DATABASES = {
'default': {...
How to create project in dijango-1.4
In dijango-1.4 to create project in under django framwork use the below commands step by step :-
Step1- First you have to check your dijango framework in proparly worked or not.
Step2- Than Go to the django framwork location:
...
How to install Djanog-1.4 with python in ubuntu
Use these step to install the django-1.4 in ubuntu
Step1- First check the python-2.7 version by use this commond
python -V
Step2- than use below link and install django-1.4 version
https://pypi.python.org/pypi/Django/1.4 ...
Regular Expression In Python
Hi All,
Regular expression is used to validate input. Python have a library which have many methods to use regular expression.
Regular Expression :- A regular expression (or RE) specifies a set of strings that matches it.
The functions i...
Setup Django framework in wondows
Hi All,
If you want to setup Django framework in your system then you just need to read this blog only .
Python Installation : - You need to install python first.You can install python from here . I'm using 3.5.2 version of pyt...
Sorting Tuple/List In Python
Hi All,
In programming world, we have to perform some basic operation on list or tuple but in python , it is easy to perform any operation on list or tuple. for example:-
If you have a number tuple/list like
data = [[1,10,8], [4,...
Make A Simple Sign In User Interface Using Python For Windows
Hi All,
In this blog, I will tell you , how to make a simple Sign-In/Log-In UI for User. I'm using python27 for this code. Python give you IDLE, which is a good python editor. There are many libraries to make User interface in python, but ...
Returning Multiple Values in Python using Dictionary?
# A Python program returning multiple values from a method using dictionary
# Function is define that returns a dictionary
def fun():
d = dict();
d['str'] = "Demo"
d['x'] = 20
return d
# Driver code to test abo...
Returning Multiple Values in Python using tuple?
# A Python program returning multiple values from a method using tuple
# Function is defined that returns a tuple
def fun():
str = "Demo"
x = 20
return str, x; # Returning a tuple
# Driver code to test above method
...
Returning Multiple Values in Python using list?
# A Python program returning multiple values from a method using list
# Defining a function which returns a list
def fun():
str = "Demo"
x = 20
return [str, x];
# Driver code to test above function
list = fun() ...
How to swap two variables in one line in python?
Python program to swap two variables in single line in python
Python program to swap two variables in single line
a = 5
b = 10
a, b = a, b
print "Swapped values of a and b are", a, b
Output
Swapped values of a and b are 10 5
...
Django Framework.
Django is an open source web application framework, developed using Python, which follows the Model View Controller architectural pattern. It is maintained by the Django Software Foundation.
Django's objective is to simplify the creation of co...
Sending Email in bulk using Python
For sending Email to a list of receivers using python can done by using the given code. Here I am using Gmail SMTP service for this purpose (Create a separate account for this, cause it might be dangerous to use your primary email address as the ...
How to create search function in python
In python search function searches for first occurrence of RE pattern within string with optional flags.
The search function is used to re.search function and returns a match object on success.
use the below syntax for search function in .py ...
How to initialization the function in python
In python your extension module is the initialization function and This function is called by the Python interpreter when the module is loaded. the function is named initModule.
use the below function in your own module in .py file,
PyMODINIT...
method mapping table in python
In python method mapping table is an array of PyMethodDef structures which creates this (PyMethodDef) structure through a function and the table needs to be terminated with a sentinel that consists of NULL and 0 values for the appropriate members...
Python Tuples
A tuple is a sequence of immutable Python objects. Tuples are in form of sequences as same as lists. The main differences between tuples and lists is that tuples cannot be changed like lists, also tuples use parentheses whereas lists use square b...
Delete List Elements in python
To remove a list element, you can use either the del statement if you know exactly which element(s) you are deleting or the remove() method if you do not know. For example
#!/usr/bin/python
list1 = ['physics', 'chemistry', 1997, 2000];
...
Updating Lists in python
If you want to update single or multiple elements of lists then you have to provide the slice on the left-hand side of the assignment operator, and to add to elements in a list you can use the append() method. For example
#!/usr/bin/python
...
Accessing Values in Lists in Python
To access values in lists, use the square brackets for slicing along with the index or indices to obtain value available at that index. For example
#!/usr/bin/python
list1 = ['physics', 'chemistry', 1997, 2000];
list2 = [1, 2, 3, 4, 5, 6,...
Python Lists
The list is a most versatile datatype available in Python which can be written as a list of comma-separated values (items) between square brackets. Important thing about a list is that items in a list need not be of the same type.For example you ...
Sending Attachments as an E-mail in Python
To send an e-mail with mixed content you requires to set Content-type header to multipart/mixed. Then, text and attachment sections can be specified within boundaries.
A boundary started with two hyphens followed by a unique number, which cannot...
Sending an HTML e-mail using Python
All the content are treated as a simple text at when you send a text message using Python. Even if you include HTML tags in a text message, it will display as simple text and HTML tags will not be formatted according to HTML syntax. But Python pr...
E-mail using Python script
I have posted python script for e-mail sending in python project code is given below.
import smtplib
sender = 'from@findnerd.com'
receivers = ['to@todomain.com']
message = """From: From Person
To: To Person
Subject: SMTP e-mail test
...
Python Sending Email using SMTP
Simple Mail Transfer Protocol (SMTP) is a protocol which handles sending e-mail and routing e-mail between mail servers .And with the help of smtp we can provides smtplib module which defines an SMTP client session object that can be used to sen...
How to create Simple Client in python
In python simple client program opens a connection to a given port 9876543 and given host. It is very simple to create a socket client using Python's socket module function. The socket.connect(hosname, port ) opens a TCP connection to hostname on...
How to create A Simple Server in python
In python simple server is Internet servers, we use the socket function available in socket module to create a socket object. After then a socket object is used to call other functions to setup a socket server. after this call bind(hostname, port...
what is the socket Module in python
In python socket Module create socket and also use the function name socket.socket() function. This function is also available in socket module. There are many type of socket method in python like- Server Socket Methods and Client Socket Methods...