Python Foundation

+91-7982108418            

 

                          PYTHON NUMBER QUESTIONS
  1. Write a Python program to convert degree to radian.

 

  1. Write a Python program to convert radian to degree.

 

  1. Write a Python program to calculate the area of a Trapezoid.

 

  1. Write a Python program to calculate the area of a Parallelogram.

 

  1. Write a Python program to calculate surface volume and area of a cylinder. Note: A cylinder is one of the most basic curvilinear geometric shapes, the surface formed by the points at a fixed distance from a given straight line, the axis of the cylinder.

 

  1. Write a Python program to calculate surface volume and area of a sphere. Note: A sphere is a perfectly round geometrical object in three-dimensional space that is the surface of a completely round ball.

 

  1. Write a Python program to calculate arc length of an angle.

 

  1. Write a Python program to calculate the area of the sector.

 

  1. Write a Python program to calculate the discriminant value.

 

  1. Write a Python program to find the smallest multiple of the first n Also, display the factors.

 

  1. Write a Python program to calculate the difference between the squared sum of first n natural numbers and the sum of squared first n natural (default value of number=2).

 

  1. Write a Python program to calculate the sum of all digits of the base to the specified power.

 

  1. Write a Python program to find out, if the given number is abundant.

 

  1. Write a Python program to sum all amicable numbers from 1 to specified number.

 

  1. Write a Python program to returns sum of all divisors of a number.

 

  1. Write a Python program to print all permutations of a given string (including duplicates).

 

  1. Write a Python program to print the first “n” Lucky numbers.

 

  1. Write a Python program to computing square roots using the Babylonian method.

 

  1. Write a Python program to multiply two integers without using the * operator in python.

 

  1. Write a Python program to calculate magic square.

 

  1. Write a Python program to print all primes (Sieve_of_Eratosthenes) smaller than or equal to a specified number.

 

  1. Write a python program to find the next smallest palindrome of a specified number.

 

  1. Write a python program to find the next previous palindrome of a specified number.

 

  1. Write a Python program to generate all permutations of a list in python.

 

  1. Write a Python program for nth Catalan Number.

 

  1. Write a Python program to print number with commas as thousands separators.

 

  1. Write a Python program to calculate the distance between two points using latitude and longitude.

 

  1. Write a Python program to calculate the area of regular  polygons.

 

  1. Write a Python program to calculate wind chill index.

 

30.Write a Python program to find the roots of a quadratic function.

 

31.Write a Python program to convert a binary number to decimal number.

 

32.Write a Python program to print a complex number and its real and imaginary parts.

 

  1. Write a Python program to add, subtract, multiply and division of two complex number.

 

  1. Write a Python program to get the length and the angle of a complex  number.

 

  1. Write a Python program to convert to/from rectangular coordinates to Polar Coordinates.

 

  1. Write a Python program to find the maximum and minimum numbers from the specified decimal number.

 

  1. Write a Python program to find the sum of the following decimal numbers and display the numbers in sorted order.

 

  1. Write a Python program to get the square root and exponential of a given decimal number.

 

  1. Write a Python program to retrieve the current global context (public properties) for all decimal.

 

  1. Write a Python program to round a specified decimal by setting precision (between 1 and 4).

 

  1. Write a Python program to round a specified number upwards towards infinity and down towards negative infinity of precision 4.

 

  1. Write a Python program to get the local and default precision.

 

  1. Write a Python program to display the fraction instances of the string representation of a number.

 

  1. Write a Python program to create the fraction instances of float number.

 

  1. Write a Python program to create the fraction instances of decimal numbers.

 

  1. Write a Python program to add, subtract, multiply and divide two fractions.

 

  1. Write a Python program to convert a floating point number (PI) to an approximate rational value on the various denominators.

 

  1. Write a Python program to generate random float numbers in a specific numerical  range.

 

  1. Write a Python program to generate random integers in a specific numerical range.

 

  1. Write a Python program to generate random even integers in a specific numerical range.

 

  1. Write a Python program to get a single random element from a specified string.

 

  1. Write a Python program to shuffle the following elements randomly.   Sample elements : [1, 2, 3, 4, 5, 6, 7]

 

53. Write a Python program to flip a coin 1000 times and count heads and tails.

 

54.Write a Python program to print a random sample of words from the system dictionary.

 

55. Write a Python program to randomly select an item from a list.

 

  1. Write a Python program to calculate the absolute value of a floating point number.

 

  1. Write a Python program to calculate the standard deviation of the following data.

 

  1. Write a Python program to print the floating point from mantissa, exponent pair.

 

  1. Write a Python program to split fractional and integer parts of a floating point number.

 

  1. Write a Python program to parse math formulas and put parentheses around multiplication and division.

 

  1. Write a Python program to describe linear regression.

 

  1. Write a Python program to calculate a grid of hexagon coordinates of the given radius given lower-left and upper-right The function will return a list of lists containing 6 tuples of x, y point coordinates. These can be used to construct valid regular hexagonal polygon.

 

63. Write a Python program to create a simple math quiz.

 

  1. Write a Python program to calculate the volume of a tetrahedron.

 

  1. Write a Python program to compute the value of e(2.718281827…) using infinite series.

 

  1. Write a Python program to create an ASCII waveform.

 

  1. Write a Python program to create a dot string.

 

  1. Write a Python program to create a Pythagorean theorem calculator.

 

  1. Write a Python function to round up a number to specified digits.

 

  1. Write a Python program for casino simulation.

 

  1. Write a Python program to reverse a range.

 

  1. Write a Python program to create a range for floating numbers.

 

  1. Write a Python program to generate (given an integer n) a square matrix filled with elements from 1 to n raised to the power of 2 in spiral order.

 

  1. Write a Python program to select a random date in the current year.

 

  1. Write a Python program to calculate clusters using Hierarchical Clustering method.

 

76.Write a Python program to implement Euclidean Algorithm to compute the greatest common divisor (gcd).

 

77. Write a Python program to convert RGB color to HSV color.

 

78. Write a Python program to find perfect squares between two given numbers.

 

  1. Write a Python program to compute Euclidean distance.

 

  1. Write a Python program to convert an integer to a 2 byte Hex value.

 

81. Write a Python program to generate a series of unique random numbers.

 

82. Write a Python program to convert a float to ratio.

Powered by BetterDocs

Contact Us
close slider