Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

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...

How to create the match Function in python

In python match Function is a function witch attempts to match RE pattern to string with optional flags and re.match function returns a match object on success, None on failure. Here is the syntax for this function: re.match(pattern, string, ...

ThetimeModule in python

There is a popular time module available in Python which provides functions for working with times and for converting between representations. Here is the list of all available methods 1-time.altzone The offset of the local DST ti...

How to create class in python

In python class statement creates a new class definition and The class has a documentation string which can be accessed via ClassName.__doc__. The class_suite consists of all the component statements defining class members, data attributes and fu...

How to Getting calendar for a month in python ?

If you want to getting calendar for a month then we can set calendar module as it gives a wide range of methods to play with yearly and monthly calendars. Here, we print a calendar for a given month ( Jan 2008 ) and for example you can see below...

How to Getting formatted time in python ?

If you want to getting formatted time then we can format any time as per your requirement, but simple method to get time in readable format is asctime() and for example you can see below code #!/shiva/bin/python import time; localtime = time...

How to getting current time in python ?

If you want to getting current time instant from a seconds since the epoch floating-point value into a time-tuple, pass the floating-point value to a function .For example you can see below code. #!/siva/bin/python import time; loc...

What is TimeTuple in python ?

In Python time functions handle time as a tuple of 9 numbers, given below example 0 4-digit year 2008 1 Month 1 to 12 2 Day 1 to 31 3 Hour 0 to 23 4 Minute 0 to 59 5 Second 0 to 61 (60 or 61 are leap-seconds) 6 Day of Week ...

What is Tick in python ?

The floating-point numbers in units of seconds for time interval are indicated by Tick in python. Particular instants in time are expressed in seconds since 12:00am, January 1, 1970(epoch). And there is a popular time module available...
prev 1
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: