- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Pawandeep has Published 50 Articles

pawandeep
915 Views
Patterns in Python can be printed using nested for loops. The outer loop is used to iterate through the number of rows whereas the inner loop is used to handle the number of columns. The print statement is modified to form various patterns according to the requirement.The patterns can be ... Read More

pawandeep
1K+ Views
Reversing an integer number is an easy task. We may encounter certain scenarios where it will be required to reverse a number.Input: 12345 Output: 54321There are two ways, we can reverse a number −Convert the number into a string, reverse the string and reconvert it into an integerReverse mathematically without ... Read More

pawandeep
2K+ Views
The for loop in Python is used to iterate over a number of elements or some specific integer range. The elements might be of an array, string or any other iterative object in Python.The for loop is the most frequently used looping statement. Most of the programming questions we encounter ... Read More

pawandeep
1K+ Views
A Dictionary in Python is a type of data structure.It consists of a collection of key-value pairs. Each key in the dictionary is unique. Each unique key in the dictionary is associated to its value. Thus, Dictionary holds key : value pairs.We will be discussing how to create a dictionary ... Read More

pawandeep
829 Views
Type conversion is at times needed when the user wants to convert one data type into another data type according to requirement.Python has in-built function str() to convert an integer to a string. We will be discussing various other methods in addition to this to convert int into string in ... Read More

pawandeep
684 Views
append()There may arise some situations where we need to add or append an element at the end of a list. We’ll use append() method in Python which adds an item to the end of the list.The length of the list increases by one.Syntaxlist.append(item)The single parameter item is the item to ... Read More

pawandeep
1K+ Views
There may be some situations, where we need to convert a list into a string. We will discuss different methods to do the same.IterationIterate through the list and append the elements to the string to convert list into a string. We will use for-in loop to iterate through the list ... Read More

pawandeep
6K+ Views
Programs are written to solve a specific problem of a user. Thus, the program must be such which can interact with the user. This means that a program must take input from the user and perform the task accordingly on the input which user provides.The method to take input is ... Read More

pawandeep
5K+ Views
After writing the code, we need to run the code to execute and obtain the output. On running the program, we can check whether the code is written is correct and produces the desired output.Running a python program is quite an easy task.Run on IDLETo run a python program on ... Read More

pawandeep
374 Views
Python has no in-built function to reverse a string. Thus, we need to implement our own logic to reverse a string.We will reverse a string using different methods.Using FOR LoopThe idea behind this method is to use a reverse loop starting from the last index of the string to the ... Read More