×
Home
Jobs
Tools
Coding Ground
Current Affairs
UPSC Notes
Online Tutors
Whiteboard
Net Meeting
Tutorix
Login
Packages
Categories
Java
JSP
iOS
HTML
Android
Python
C Programming
C++ Programming
C#
PHP
CSS
Javascript
jQuery
SAP
SAP HANA
Data Structure
RDBMS
MySQL
Mathematics
8085 Microprocessor
Operating System
Digital Electronics
Analysis of Algorithms
Mobile Development
Front End
Web Development
Selenium
MongoDB
Computer Network
General Topics
Library
Videos
Q/A
eBooks
Login
Library
Videos
eBooks
Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Selected Reading
UPSC IAS Exams Notes
Developer's Best Practices
Questions and Answers
Effective Resume Writing
HR Interview Questions
Computer Glossary
Who is Who
Mohd Mohtashim
has Published
298
Answers
Insert the string at the beginning of all items in a list in Python
Python
Server Side Programming
Programming
Mohd Mohtashim
Published on 16-May-2020 14:19:49
In this post we need to enter the string at the beginning of all items in a list. For ex: We're given string = "Tutorials_Point" and List contains multiple element such as "1", "2" etc. So in this we need to add Tutorials_Point in front of "1", "2" and so on.ExampleAproach ...
Read More
Python - iter() method
Python
Server Side Programming
Programming
Mohd Mohtashim
Published on 16-May-2020 14:16:40
Python inter() basically creates an iterator object, which can be used to iterate on iterables. Let's try to understand what it is iterator and iterables. Iterator − An iterator is an object that contains a countable number of values which can be iterated on iterables. Iterables: An iterables is basically ...
Read More
Python - int() function
Python
Server Side Programming
Programming
Mohd Mohtashim
Published on 16-May-2020 14:13:43
Python int() function converts the specified value into an integer number.The int() function will returns an integer object constructed from a number or string let say x, or return 0 if no argum ents are specified.Syntaxint(value, base) int(x, base=10)value = A number or a string that can be converted into ...
Read More
Python - Insert list in another list
Python
Server Side Programming
Programming
Mohd Mohtashim
Published on 16-May-2020 14:08:26
A list also the extend() method, which appends items from the list you pass as an argument. extend() − Python list method extend() appends the contents of seq to list. You can read more about it here "https://www.tutorialspoint.com/python/list_append.htm"Now let us see hands onExample Live Demo#append first_list = [1, 2, 3, 4, ...
Read More
Python - Increasing alternate element pattern in list
Python
Server Side Programming
Programming
Mohd Mohtashim
Published on 16-May-2020 14:01:36
In this we are going to use List Comprehension with enumerate() Python provides compact syntax for deriving one list from another. These expressions are called list comprehensions.List comprehensions are one of the most powerful tools in Python. Python’s list comprehension is an example of the language’s support for functional programming ...
Read More
Tkinter Programming in Python
Python
Server Side Programming
Programming
Mohd Mohtashim
Published on 31-Jan-2020 15:04:19
Tkinter is the standard GUI library for Python. Python when combined with Tkinter provides a fast and easy way to create GUI applications. Tkinter provides a powerful object-oriented interface to the Tk GUI toolkit.Creating a GUI application using Tkinter is an easy task. All you need to do is perform ...
Read More
Parsing XML with DOM APIs in Python
Python
Server Side Programming
Programming
Mohd Mohtashim
Published on 31-Jan-2020 15:02:17
The Document Object Model ("DOM") is a cross-language API from the World Wide Web Consortium (W3C) for accessing and modifying XML documents.The DOM is extremely useful for random-access applications. SAX only allows you a view of one bit of the document at a time. If you are looking at one ...
Read More
Parsing XML with SAX APIs in Python
Python
Server Side Programming
Programming
Mohd Mohtashim
Published on 31-Jan-2020 15:00:33
SAX is a standard interface for event-driven XML parsing. Parsing XML with SAX generally requires you to create your own ContentHandler by subclassing xml.sax.ContentHandler.Your ContentHandler handles the particular tags and attributes of your flavor(s) of XML. A ContentHandler object provides methods to handle various parsing events. Its owning parser calls ContentHandler methods ...
Read More
Multithreaded Priority Queue in Python
Python
Server Side Programming
Programming
Mohd Mohtashim
Published on 31-Jan-2020 14:54:30
The Queue module allows you to create a new queue object that can hold a specific number of items. There are following methods to control the Queue −get() − The get() removes and returns an item from the queue.put() − The put adds item to a queue.qsize() − The qsize() returns the ...
Read More
Synchronizing Threads in Python
Python
Server Side Programming
Programming
Mohd Mohtashim
Published on 31-Jan-2020 14:51:11
The threading module provided with Python includes a simple-to-implement locking mechanism that allows you to synchronize threads. A new lock is created by calling the Lock() method, which returns the new lock.The acquire(blocking) method of the new lock object is used to force threads to run synchronously. The optional blocking parameter enables you to control whether ...
Read More
1
2
3
4
5
6
7
...
30
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout