Menu Close

Month: December 2020

Print the First N prime numbers.

Print the First N prime numbers in Python. If you want to find prime numbers between two range click here. Input_1:Enter the N number: 100Output:[2,…

The Chef’s Binary Tree.

Chef has a binary tree. The binary tree consists of 1 or more nodes. Each node has a unique integer id. Each node has up…

Sum of Natural Numbers.

Python Program to Find the Sum of First N Natural Numbers Input:Value of “N” Output:Print the Sum of N natural Numbers Input_1:Enter the N value:…

Sum of the Input.

Write a program to find the sum of the entered numbers Refer sample input and output for formatting specification Input_1:Enter any number: 10Output:1 Input_2:Enter any…

Median of Three

Write a function that takes three numbers as parameters, and returns the median value of those parameters as its result. Include a main program that…

Insert and Extend in list

Write a program to append two list and calculate the length of the list. Kindly refer sample input and output for the task Input: Output:…

Print Odd Numbers in range

Write a program to print all the odd numbers between two ranges(Include the range too) Refer sample input and output for formatting specification. Input_1:Enter starting…

Compare two List in python

Write a program to compare two list and display the comparison result Input: Output: Refer sample input and output for formatting specification. cmp function: This…

Word Count

Write a Python program to count the number of entered words in a given string.Refer sample input and output for formatting specification.All float values are…

Display Time

Time Challenge to display hours minutes and seconds in both 12 and 24 hours format.24 hours format: 23:30:12 Standard format: 11:30:12 pm. Exec. on linux…