PYTHON NUMBER QUESTIONS
- Write a Python program to convert degree to radian.
- Write a Python program to convert radian to degree.
- Write a Python program to calculate the area of a Trapezoid.
- Write a Python program to calculate the area of a Parallelogram.
- 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.
- 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.
- Write a Python program to calculate arc length of an angle.
- Write a Python program to calculate the area of the sector.
- Write a Python program to calculate the discriminant value.
- Write a Python program to find the smallest multiple of the first n Also, display the factors.
- 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).
- Write a Python program to calculate the sum of all digits of the base to the specified power.
- Write a Python program to find out, if the given number is abundant.
- Write a Python program to sum all amicable numbers from 1 to specified number.
- Write a Python program to returns sum of all divisors of a number.
- Write a Python program to print all permutations of a given string (including duplicates).
- Write a Python program to print the first “n” Lucky numbers.
- Write a Python program to computing square roots using the Babylonian method.
- Write a Python program to multiply two integers without using the * operator in python.
- Write a Python program to calculate magic square.
- Write a Python program to print all primes (Sieve_of_Eratosthenes) smaller than or equal to a specified number.
- Write a python program to find the next smallest palindrome of a specified number.
- Write a python program to find the next previous palindrome of a specified number.
- Write a Python program to generate all permutations of a list in python.
- Write a Python program for nth Catalan Number.
- Write a Python program to print number with commas as thousands separators.
- Write a Python program to calculate the distance between two points using latitude and longitude.
- Write a Python program to calculate the area of regular polygons.
- 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.
- Write a Python program to add, subtract, multiply and division of two complex number.
- Write a Python program to get the length and the angle of a complex number.
- Write a Python program to convert to/from rectangular coordinates to Polar Coordinates.
- Write a Python program to find the maximum and minimum numbers from the specified decimal number.
- Write a Python program to find the sum of the following decimal numbers and display the numbers in sorted order.
- Write a Python program to get the square root and exponential of a given decimal number.
- Write a Python program to retrieve the current global context (public properties) for all decimal.
- Write a Python program to round a specified decimal by setting precision (between 1 and 4).
- Write a Python program to round a specified number upwards towards infinity and down towards negative infinity of precision 4.
- Write a Python program to get the local and default precision.
- Write a Python program to display the fraction instances of the string representation of a number.
- Write a Python program to create the fraction instances of float number.
- Write a Python program to create the fraction instances of decimal numbers.
- Write a Python program to add, subtract, multiply and divide two fractions.
- Write a Python program to convert a floating point number (PI) to an approximate rational value on the various denominators.
- Write a Python program to generate random float numbers in a specific numerical range.
- Write a Python program to generate random integers in a specific numerical range.
- Write a Python program to generate random even integers in a specific numerical range.
- Write a Python program to get a single random element from a specified string.
- 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.
- Write a Python program to calculate the absolute value of a floating point number.
- Write a Python program to calculate the standard deviation of the following data.
- Write a Python program to print the floating point from mantissa, exponent pair.
- Write a Python program to split fractional and integer parts of a floating point number.
- Write a Python program to parse math formulas and put parentheses around multiplication and division.
- Write a Python program to describe linear regression.
- 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.
- Write a Python program to calculate the volume of a tetrahedron.
- Write a Python program to compute the value of e(2.718281827…) using infinite series.
- Write a Python program to create an ASCII waveform.
- Write a Python program to create a dot string.
- Write a Python program to create a Pythagorean theorem calculator.
- Write a Python function to round up a number to specified digits.
- Write a Python program for casino simulation.
- Write a Python program to reverse a range.
- Write a Python program to create a range for floating numbers.
- 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.
- Write a Python program to select a random date in the current year.
- 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.
- Write a Python program to compute Euclidean distance.
- 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.