**Code to print digit 9 in Python is:**

```
print("""* * * * * * * * * *
* *
* *
* *
* *
* *
* *
* *
* *
* * * * * * * * * *
*
*
*
*
*
*
*
*
* * * * * * * * * * """)
```

**Output:**

**Also Read:**

- Calculate Mean, Median, and Mode Python
- Assignment|How to check prime number in python?
- Assignment Helper|How to find the factorial of a number in python?
- Assignment Helper|Python Program to Check if a Number is Positive, Negative, or 0
- Assignment Helper | Python Program to Find the Square Root
- Assignment Helper | Python Program to Display the multiplication Table
- Assignment Helper | Python Program to Find the Largest Among Three Numbers
- Assignment Helper | Leap Year Program in Python
- Assignment Helper | Add Two Numbers Python
- Assignment Helper | Python Program to Calculate the Area of a Triangle
- Assignment Helper | Python Program to Solve Quadratic Equation
- Assignment Helper | Python Program to Swap Two Variables
- Assignment Helper | Python Program to Generate a Random Number
- Assignment Helper | Python Program to Convert Kilometers to Miles
- Assignment Helper | Python Program to Convert Celsius To Fahrenheit
- Assignment Helper | Python Program to Check if a Number is Odd or Even
- Assignment Helper | Python Program to Print all Prime Numbers in an Interval
- Python Program to Print the Fibonacci sequence
- Assignment Helper | Python Program to Check Armstrong Number
- Assignment Helper | Python Program to Convert Kilometers to Miles
- Assignment Helper | Python Program to Find Armstrong Number in an Interval
- Assignment Helper | Python Program to Find the Sum of Natural Numbers
- Assignment Helper | Python Program to Display Powers of 2 Using Anonymous Function
- Assignment Helper | Python Program to Find Numbers Divisible by Another Number
- Assignment Helper | Python Program to Convert Decimal to Binary, Octal, and Hexadecimal
- Assignment Helper | Python Program to Find ASCII Value of Character
- Assignment Helper | Python Program to Find HCF or GCD
- Factorial Programming in Python
- GCD Recursion in Python
- What are Generators, Generator Functions, Generator Objects, and Yield?