Python Projects & Resources – Telegram
Python Projects & Resources
60.6K subscribers
857 photos
342 files
345 links
Perfect channel to learn Python Programming 🇮🇳
Download Free Books & Courses to master Python Programming
- Free Courses
- Projects
- Pdfs
- Bootcamps
- Notes

Admin: @Coderfun
Download Telegram
Tune in to the 10th AI Journey 2025 international conference: scientists, visionaries, and global AI practitioners will come together on one stage. Here, you will hear the voices of those who don't just believe in the future—they are creating it!

Speakers include visionaries Kai-Fu Lee and Chen Qufan, as well as dozens of global AI gurus! Do you agree with their predictions about AI?

On the first day of the conference, November 19, we will talk about how AI is already being used in various areas of life, helping to unlock human potential for the future and changing creative industries, and what impact it has on humans and on a sustainable future.

On November 20, we will focus on the role of AI in business and economic development and present technologies that will help businesses and developers be more effective by unlocking human potential.

On November 21, we will talk about how engineers and scientists are making scientific and technological breakthroughs and creating the future today! The day's program includes presentations by scientists from around the world:
- Ajit Abraham (Sai University, India) will present on “Generative AI in Healthcare”
- Nebojša Bačanin Džakula (Singidunum University, Serbia) will talk about the latest advances in bio-inspired metaheuristics
- AIexandre Ferreira Ramos (University of São Paulo, Brazil) will present his work on using thermodynamic models to study the regulatory logic of trannoscriptional control at the DNA level
- Anderson Rocha (University of Campinas, Brazil) will give a presentation ennoscriptd “AI in the New Era: From Basics to Trends, Opportunities, and Global Cooperation”.

And in the special AIJ Junior track, we will talk about how AI helps us learn, create and ride the wave with AI.

The day will conclude with an award ceremony for the winners of the AI Challenge for aspiring data scientists and the AIJ Contest for experienced AI specialists. The results of an open selection of AIJ Science research papers will be announced.

Ride the wave with AI into the future!

Tune in to the AI Journey webcast on November 19-21.
7👍2👏1
Python Practice Questions with Answers 🐍💡

🔍 Q1. How do you check if a number is even or odd?
Answer:
num = 10
if num % 2 == 0:
print("Even")
else:
print("Odd")


🔍 Q2. How do you reverse a string?
Answer:
text = "hello"
reversed_text = text[::-1]
print(reversed_text) # Output: olleh


🔍 Q3. Write a function to find the factorial of a number.
Answer:
def factorial(n):
result = 1
for i in range(1, n+1):
result *= i
return result

print(factorial(5)) # Output: 120


🔍 Q4. How do you remove duplicates from a list?
Answer:
items = [1, 2, 2, 3, 4, 4]
unique_items = list(set(items))
print(unique_items)


🔍 Q5. Print numbers from 1 to 10 using a loop.
Answer:
for i in range(1, 11):
print(i)


🔍 Q6. Check if a word is a palindrome.
Answer:
word = "madam"
if word == word[::-1]:
print("Palindrome")
else:
print("Not a palindrome")


💬 Tap ❤️ for more!
13👍2
Python Practice Questions with Answers – Part 2 🐍💡

🔍 Q1. Swap two variables in Python
Answer:
a = 5
b = 10
a, b = b, a
print(a, b) # Output: 10 5


🔍 Q2. Find the largest number in a list
Answer:
nums = [3, 7, 2, 8, 4]
print(max(nums)) # Output: 8


🔍 Q3. Count vowels in a string
Answer:
text = "hello world"
vowels = "aeiou"
count = sum(1 for char in text if char in vowels)
print(count) # Output: 3


🔍 Q4. Create a simple calculator (add, subtract)
Answer:
def calc(a, b, op):
if op == '+':
return a + b
elif op == '-':
return a - b

print(calc(5, 3, '+')) # Output: 8


🔍 Q5. Check if a number is prime
Answer:
num = 7
if num > 1:
for i in range(2, num):
if num % i == 0:
print("Not Prime")
break
else:
print("Prime")
else:
print("Not Prime")


🔍 Q6. Find the sum of all numbers in a list
Answer:
nums = [1, 2, 3, 4]
print(sum(nums)) # Output: 10


💬 Tap ❤️ for Part 3!
14👍4
Python Practice Questions with Answers – Part 3 🐍💡

These dive into lists, strings, and sequences—2025 exercises from GeeksforGeeks and PYnative spotlight sorting for second max and dict counters for freq as staples in 60% of coding interviews, where efficient loops like the Fibonacci generator cut runtime by half!

🔍 Q1. Find the second largest number in a list
Answer:
nums = [10, 4, 7, 20, 15]
nums = list(set(nums))
nums.sort()
print(nums[-2])

Explanation:
⦁ set() removes duplicates
⦁ list() converts back to list
⦁ sort() arranges numbers in order
⦁ nums[-2] picks the second largest

🔍 Q2. Count words in a sentence
Answer:
text = "Python makes you faster"
words = text.split()
print(len(words))

Explanation:
⦁ split() breaks text into words
⦁ len() counts the words

🔍 Q3. Find the frequency of each character
Answer:
text = "banana"
freq = {}
for ch in text:
freq[ch] = freq.get(ch, 0) + 1
print(freq)

Explanation:
⦁ get() retrieves previous count or 0
⦁ Loop updates count for each character

🔍 Q4. Print Fibonacci numbers up to n terms
Answer:
n = 7
a, b = 0, 1
for _ in range(n):
print(a)
a, b = b, a + b

Explanation:
⦁ range() controls how many numbers print
⦁ Tuple assignment updates both values

🔍 Q5. Remove all spaces from a string
Answer:
text = "a b c d"
clean = text.replace(" ", "")
print(clean)

Explanation:
⦁ replace() swaps spaces with empty text

🔍 Q6. Find the index of an element in a list
Answer:
items = ["a", "b", "c"]
print(items.index("b"))

Explanation:
⦁ index() returns the position of the element

💬 Tap ❤️ for more!

The get() in Q3 is a dict pro tip—handles defaults smoothly! What's one you've coded lately? 😊
11
Python Practice Questions – Part 4 🐍💻

🔹 Q1. Merge two lists
list1 = [1, 2]  
list2 = [3, 4]
merged = list1 + list2
print(merged)

📌 Explanation: + joins two lists

🔹 Q2. Find the minimum number in a list
nums = [5, 2, 9, 1]  
print(min(nums))

📌 Explanation: min() returns the smallest value

🔹 Q3. Convert a string to uppercase
text = "hello"  
print(text.upper())

📌 Explanation: upper() converts to uppercase

🔹 Q4. Check if a list contains an element
items = [1, 2, 3]  
print(2 in items)

📌 Explanation: in checks if value exists in list

🔹 Q5. Square all numbers in a list
nums = [1, 2, 3, 4]  
squared = [x**2 for x in nums]
print(squared)

📌 Explanation: List comprehension squares each item

🔹 Q6. Remove an element from a list
items = [1, 2, 3]  
items.remove(2)
print(items)

📌 Explanation: remove() deletes the value 2

💬 Double Tap ❤️ For More
17👍1
What is the output of this code?

x = 5 y = "5" print(x + int(y))
Anonymous Quiz
17%
A) 55
61%
B) 10
19%
C) TypeError
3%
D) 5
5🤔2
What does this print?

a = "Python" print(a[0])
Anonymous Quiz
2%
A) y
88%
B) P
8%
C) o
1%
D) n
3
How do you get user input in Python?
Anonymous Quiz
13%
A) input.get()
12%
B) get.input()
73%
C) input()
2%
D) read()
6
What is the output of this code?

print(10 // 3)
Anonymous Quiz
35%
A) 3.33
54%
B) 3
2%
C) 4
9%
D) Error
Which keyword is used to define a function in Python?
Anonymous Quiz
8%
A) func
7%
B) define
8%
C) function
77%
D) def
What is the result of this code?
a = [1, 2, 3]
a.append(4) print(a)
Anonymous Quiz
9%
A) [1, 2, 3]
9%
B) [4, 1, 2, 3]
82%
C) [1, 2, 3, 4]
7
What is the output?
x = 10
if x > 5: print("Yes") else: print("No")
Anonymous Quiz
82%
A) Yes
11%
B) No
5%
C) Error
1%
D) Nothing
4
What is the type of value 3.14?
Anonymous Quiz
5%
int
93%
float
2%
str
2
Which symbol is used for writing comments in Python?
Anonymous Quiz
25%
A) //
8%
B) <!-- -->
59%
C) #
8%
D) /* */
9
Important Python Functions
13👍6
Which data structure does not allow duplicate values?
Anonymous Quiz
8%
A) List
33%
B) Tuple
42%
C) Set
16%
D) Dictionary
😴4🔥1
Which method is used to add a key-value pair to a dictionary?
Anonymous Quiz
10%
A) add()
18%
B) append()
7%
C) insert()
64%
D) dict[key] = value
😱4🔥1
Which structure is best for storing key-value pairs?
Anonymous Quiz
10%
A) List
11%
B) Tuple
11%
C) Set
68%
D) Dictionary
5🔥1😁1
7🔥1🥰1
What is the output of this code?*
def add(x, y=2):
return x + y print(add(3))
Anonymous Quiz
6%
2
19%
3
75%
5
5🔥1😁1