×
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
Pavitra
has Published
241
Answers
Python Program to convert Kilometers to Miles
Python
Server Side Programming
Programming
Pavitra
Published on 23-Dec-2019 12:06:29
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given distance in kilometers and we need to convert it into milesAs we know that 1 kilometer equals 0.62137 miles.Formula UsedMiles = kilometer * 0.62137Now let’s observe the concept in the implementation ...
Read More
Python program to convert hex string to decimal
Python
Server Side Programming
Programming
Pavitra
Published on 23-Dec-2019 12:04:00
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given a hexadecimal string, we need to convert it into its decimal equivalent.We have two approaches to solve the problem−Brute-force ApproachUsing Built-in moduleBrute-Force MethodHere we take the help of explicit type casting ...
Read More
Convert decimal to binary number in Python program
Python
Server Side Programming
Programming
Pavitra
Published on 23-Dec-2019 12:00:36
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given a decimal number, we need to convert it into its binary equivalent.There are two approaches to solve the given problem. Let’s see them one by one−Recursive ApproachExample Live Demodef DecimalToBinary(num): if ...
Read More
Convert a list to string in Python program
Python
Server Side Programming
Programming
Pavitra
Published on 23-Dec-2019 11:54:33
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given a list iterable, we need to convert it into a string type iterable.There are four approaches to solve the given problem. Let’s see them one by one−Brute-force ApproachExample Live Demodef listToString(s): ...
Read More
Python Program to Check Prime Number
Python
Server Side Programming
Programming
Pavitra
Published on 23-Dec-2019 11:49:18
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given a number, we need to check whether the given number is a prime number or not.A given positive number greater than 1 which has no other factors except 1 and the ...
Read More
Python program to check if the given string is vowel Palindrome
Python
Server Side Programming
Programming
Pavitra
Published on 23-Dec-2019 11:46:51
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given string (containing both vowel and consonant letters), remove all consonants, then check if the resulting string is a palindrome or not.Here we first remove all the consonants present in the string. ...
Read More
Python program to check if a given string is Keyword or not
Python
Server Side Programming
Programming
Pavitra
Published on 23-Dec-2019 11:35:23
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given a number, we need to check that the number is a power of two or not.Keywords are the special words reserved by any language with specific usage and cannot be used ...
Read More
Python Program for Number of elements with odd factors in the given range
Python
Server Side Programming
Programming
Pavitra
Published on 23-Dec-2019 11:32:12
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given a range, we need to find the number of odd factors in the range.ApproachAs we all know that all perfect squares have an odd number of factors in a range. So ...
Read More
Python Program for nth multiple of a number in Fibonacci Series
Python
Server Side Programming
Programming
Pavitra
Published on 23-Dec-2019 11:26:09
In this article, we will learn about the solution to the problem statement given below.Problem statement− We are given a number, we need to find the nth multiple of a number k in Fibonacci number.The solution to the problem is discussed below−Example Live Demo# find function def find(k, n): f1 ...
Read More
Find sum of even factors of a number in Python Program
Python
Server Side Programming
Programming
Pavitra
Published on 23-Dec-2019 11:23:38
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given a number, we need to display the sum of all even factors of the number.ApproachWe check whether the number is odd, then there are no even factors, so return 0.If the ...
Read More
Previous
1
2
3
4
5
6
7
...
25
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout