Jennifer Nicholas has Published 363 Answers

Textwrap - Text wrapping and filling in Python

Jennifer Nicholas
Published on 16-Apr-2019 12:16:23
The textwrap module provides TextWrapper class that performs wrapping or filling. It has convenience functions for the same purpose.wrap(text)Wraps the single paragraph in text (a string) so every line is at most width characters long. Returns a list of output lines, without final newlines.fill(text)Wraps the single paragraph in text, and ... Read More

enum - Support for enumerations in Python

Jennifer Nicholas
Published on 16-Apr-2019 12:12:46
Enumeration is a set of identifiers (members) given unique and constant values. Within an enumeration, the members can be compared by identity. Enumeration object can also terated over.The enum module defines following classesEnum : Base class for creating enumerated constants.IntEnum : Base class for creating enumerated constants that are also subclasses ... Read More

Functools — Higher-order functions and operations on callable objects in Python

Jennifer Nicholas
Published on 16-Apr-2019 12:04:44
Function in Python is said to be of higher order. It means that it can be passed as argument to another function and/or can return other function as well. The functools module provides important utilities for such higher order functions.partial() functionThis function returns a callable 'partial' object. The object itself ... Read More

Array — Efficient arrays of numeric values in Python

Jennifer Nicholas
Published on 16-Apr-2019 11:34:32
Array is a very popular data structure in C/C++, Java etc. In these languages array is defined as a collection of more than one elements of similar data type. Python doesn't have any built-in equivalent of array. It's List as well as Tuple is a collection of elements but they ... Read More

Sending and Receiving Data with Sockets in android

Jennifer Nicholas
Published on 16-Apr-2019 08:33:47
This example demonstrate about Sending and Receiving Data with Sockets in androidNeed Server and Client ProjectServerStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.<?xml version ... Read More

How to Transfer Files Using Wi-Fi Pair Connection in Android?

Jennifer Nicholas
Published on 16-Apr-2019 07:58:46
This example demonstrate about How to Transfer Files Using Wi-Fi Pair Connection in AndroidNeed Server and Client ProjectServerStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to ... Read More

How to pass multiple data from one activity to another in Android?

Jennifer Nicholas
Published on 16-Apr-2019 05:55:56
This example demonstrate about How to pass multiple data from one activity to another in AndroidStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.<?xml version ... Read More

How to send data from one activity to another in Android without intent?

Jennifer Nicholas
Published on 15-Apr-2019 13:56:11
This example demonstrate about How to send data from one activity to another in Android without intent.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.<?xml ... Read More

How to pass values from one activity to another in Android?

Jennifer Nicholas
Published on 15-Apr-2019 13:16:54
For this lesson we are only concerned with passing data between activities without making them persistent so we’ll look at the two simplest ways to achieve that which are by using Static methods and IntentsUsing Static methodsThis example demonstrate about Passing data between activities in Android using Static methods.Step 1 ... Read More

Passing data between activities in Android

Jennifer Nicholas
Published on 15-Apr-2019 13:04:02
For this lesson we are only concerned with passing data between activities without making them persistent so we’ll look at the two simplest ways to achieve that which are by using Static methods and IntentsUsing Static methodsThis example demonstrate about Passing data between activities in Android using Static methods.Step 1 − Create ... Read More
1 2 3 4 5 6 7 ... 37 Next
Advertisements