About 1,850,000 results
Open links in new tab
  1. Check Prime Number in Python - GeeksforGeeks

    Oct 11, 2025 · Given a positive integer N, the task is to write a Python program to check if the number is Prime or not in Python. For example, given a number 29, it has no divisors other than 1 and 29 itself. …

  2. math - finding multiples of a number in Python - Stack Overflow

    Jan 28, 2013 · def printMultiples(n, m): 'takes n and m as integers and finds all first m multiples of n' for m in (n,m): if n % 2 == 0: while n < 0: print(n) After multiple searches, I was only able to find a sample …

  3. Multiple Inheritance in Python - GeeksforGeeks

    Dec 27, 2019 · Super Function Super Function in Python is used to call a method from a parent (base) class, especially in multiple inheritance. It helps avoid explicitly naming the parent class, ensures …

  4. Python Programs to Print Patterns – Print Number, Pyramid, Star ...

    Sep 3, 2024 · This Python lesson includes over 35+ coding programs for printing Numbers, Pyramids, Stars, triangles, Diamonds, and alphabet patterns, ensuring you gain hands-on experience and …

  5. Python program to print multiples of a given number

    Apr 29, 2023 · Few important tips about the program 1. In the program we take a user input and convert it to integer data type. 2. We have found out the first ten multiples of the number. 3. We have to run a …

  6. Online Python Compiler (Interpreter) - Programiz

    Write and run your Python code using our online compiler. Enjoy additional features like code sharing, dark mode, and support for multiple programming languages.

  7. Python Program to Find Numbers Divisible by 7 and Multiple of 5 …

    Jul 23, 2025 · For each number in the loop, check if it is divisible by 7 and a multiple of 5 by using the modulo operator %. If the number satisfies both conditions, print it along with a message saying that …

  8. Python Program to Reverse a Number - GeeksforGeeks

    Nov 18, 2025 · Given a number, the task is to reverse its digits. Reversing means rearranging the digits from the last to the first without changing or losing any digit. For Example: Input: 12345 Output: …

  9. Python Program to print all the numbers divisible by 3 and 5 for a ...

    Jul 23, 2025 · Approach: For example, let's take N = 20 as a limit, then the program should print all numbers less than 20 which are divisible by both 3 and 5. For this divide each number from 0 to N by …

  10. Multiplication Table Using While Loop in Python

    Jul 23, 2025 · In Python, we can use various methods to generate multiplication tables, and one versatile tool for this task is the 'while' loop. In this article, we will explore some commonly used and …