Programming in Python I Loops - for loop, break & continue I Session - 7 | Hindi
Вставка
- Опубліковано 6 лют 2023
- Programming in Python I Loops - for loop, break & continue I Session - 7 | Hindi
In this session, we have discussed:
- revised while loop
- revised break, while-else
- for loop
- range()
- continue
- for-else
Some Questions you can try :
Q1: WAP to input n and print all perfect squares till n (n inclusive).
Q2: WAP to input a string and check whether it is a Palindrome or not using for loop.
Q3: WAP to input n and print whether n is prime or not.
Q4: WAP to input n and print the following pattern:
n = 5
1
2 1 2
3 2 1 2 3
4 3 2 1 2 3 4
5 4 3 2 1 2 3 4 5
4 3 2 1 2 3 4
3 2 1 2 3
2 1 2
1
Follow me on my social handles:
Bio link 🔗 param302.bio.link
Twitter 🔗 / param3021
LinkedIn 🔗 / param302
Github 🔗 github.com/Param302
Kaggle 🔗 kaggle.com/param302
bhai koi watsaap group hai jisme aapke class ki link aati ho
No😅
@@Param3021 from where i get your class link