Anshul Python
Anshul Python
Experiment1.1
Student Nam e Anshul Thakur UID 23BCS13002
Branch: CSE Section/Group:801-B
Semester:3rd Date of Performance:1/08
Subject Name: Python programing Subject Code:23CSP-201
2. Requirements(Hardware/Software):
Prompt the user to enter a number for which they want the
multiplication table.
Generate and print the multiplication table for that number from 1
to 10.
Option 2: Number Pattern
Prompt the user to enter the number of rows for the number
pattern.
Generate and print a pattern where each row contains numbers
from 1 up to the row number.
Option 3: Exit
4. Code:
elif x==2:
rows= int(input("Please enter how many rows you need: "))
for i in range(1, rows+1):
for j in range(1, i + 1):
print(j, end=' ')
print('')
else:
print("You are Done")
5. Output:
2
Please enter how many rows you need: 3
1
12
123
3
You are Done
6. Learning Outcome: