Python Projects & Resources
57.3K subscribers
777 photos
342 files
330 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
List Comprehension in Python
โค8๐Ÿ‘2
DATA SCIENCE IN C PROGRAMMING LANGUAGE
โค5๐Ÿ‘5๐Ÿค”1
Random Module in Python ๐Ÿ‘†
โค8
Python Interview Questions:

Ready to test your Python skills? Letโ€™s get started! ๐Ÿ’ป


1. How to check if a string is a palindrome?

def is_palindrome(s):
return s == s[::-1]

print(is_palindrome("madam")) # True
print(is_palindrome("hello")) # False

2. How to find the factorial of a number using recursion?

def factorial(n):
if n == 0 or n == 1:
return 1
return n * factorial(n - 1)

print(factorial(5)) # 120

3. How to merge two dictionaries in Python?

dict1 = {'a': 1, 'b': 2}
dict2 = {'c': 3, 'd': 4}

# Method 1 (Python 3.5+)
merged_dict = {**dict1, **dict2}

# Method 2 (Python 3.9+)
merged_dict = dict1 | dict2

print(merged_dict)

4. How to find the intersection of two lists?

list1 = [1, 2, 3, 4]
list2 = [3, 4, 5, 6]

intersection = list(set(list1) & set(list2))
print(intersection) # [3, 4]

5. How to generate a list of even numbers from 1 to 100?

even_numbers = [i for i in range(1, 101) if i % 2 == 0]
print(even_numbers)

6. How to find the longest word in a sentence?

def longest_word(sentence):
words = sentence.split()
return max(words, key=len)

print(longest_word("Python is a powerful language")) # "powerful"

7. How to count the frequency of elements in a list?

from collections import Counter

my_list = [1, 2, 2, 3, 3, 3, 4]
frequency = Counter(my_list)
print(frequency) # Counter({3: 3, 2: 2, 1: 1, 4: 1})

8. How to remove duplicates from a list while maintaining the order?

def remove_duplicates(lst):
return list(dict.fromkeys(lst))

my_list = [1, 2, 2, 3, 4, 4, 5]
print(remove_duplicates(my_list)) # [1, 2, 3, 4, 5]

9. How to reverse a linked list in Python?

class Node:
def __init__(self, data):
self.data = data
self.next = None

def reverse_linked_list(head):
prev = None
current = head
while current:
next_node = current.next
current.next = prev
prev = current
current = next_node
return prev

# Create linked list: 1 -> 2 -> 3
head = Node(1)
head.next = Node(2)
head.next.next = Node(3)

# Reverse and print the list
reversed_head = reverse_linked_list(head)
while reversed_head:
print(reversed_head.data, end=" -> ")
reversed_head = reversed_head.next

10. How to implement a simple binary search algorithm?

def binary_search(arr, target):
low, high = 0, len(arr) - 1
while low <= high:
mid = (low + high) // 2
if arr[mid] == target:
return mid
elif arr[mid] < target:
low = mid + 1
else:
high = mid - 1
return -1

print(binary_search([1, 2, 3, 4, 5, 6, 7], 4)) # 3


Here you can find essential Python Interview Resources๐Ÿ‘‡
https://t.iss.one/DataSimplifier

Like for more resources like this ๐Ÿ‘ โ™ฅ๏ธ

Share with credits: https://t.iss.one/sqlspecialist

Hope it helps :)
โค5๐Ÿ‘5๐Ÿฅฐ5
Python Interview Questions:

Ready to test your Python skills? Letโ€™s get started! ๐Ÿ’ป


1. How to check if a string is a palindrome?

def is_palindrome(s):
return s == s[::-1]

print(is_palindrome("madam")) # True
print(is_palindrome("hello")) # False

2. How to find the factorial of a number using recursion?

def factorial(n):
if n == 0 or n == 1:
return 1
return n * factorial(n - 1)

print(factorial(5)) # 120

3. How to merge two dictionaries in Python?

dict1 = {'a': 1, 'b': 2}
dict2 = {'c': 3, 'd': 4}

# Method 1 (Python 3.5+)
merged_dict = {**dict1, **dict2}

# Method 2 (Python 3.9+)
merged_dict = dict1 | dict2

print(merged_dict)

4. How to find the intersection of two lists?

list1 = [1, 2, 3, 4]
list2 = [3, 4, 5, 6]

intersection = list(set(list1) & set(list2))
print(intersection) # [3, 4]

5. How to generate a list of even numbers from 1 to 100?

even_numbers = [i for i in range(1, 101) if i % 2 == 0]
print(even_numbers)

6. How to find the longest word in a sentence?

def longest_word(sentence):
words = sentence.split()
return max(words, key=len)

print(longest_word("Python is a powerful language")) # "powerful"

7. How to count the frequency of elements in a list?

from collections import Counter

my_list = [1, 2, 2, 3, 3, 3, 4]
frequency = Counter(my_list)
print(frequency) # Counter({3: 3, 2: 2, 1: 1, 4: 1})

8. How to remove duplicates from a list while maintaining the order?

def remove_duplicates(lst):
return list(dict.fromkeys(lst))

my_list = [1, 2, 2, 3, 4, 4, 5]
print(remove_duplicates(my_list)) # [1, 2, 3, 4, 5]

9. How to reverse a linked list in Python?

class Node:
def __init__(self, data):
self.data = data
self.next = None

def reverse_linked_list(head):
prev = None
current = head
while current:
next_node = current.next
current.next = prev
prev = current
current = next_node
return prev

# Create linked list: 1 -> 2 -> 3
head = Node(1)
head.next = Node(2)
head.next.next = Node(3)

# Reverse and print the list
reversed_head = reverse_linked_list(head)
while reversed_head:
print(reversed_head.data, end=" -> ")
reversed_head = reversed_head.next

10. How to implement a simple binary search algorithm?

def binary_search(arr, target):
low, high = 0, len(arr) - 1
while low <= high:
mid = (low + high) // 2
if arr[mid] == target:
return mid
elif arr[mid] < target:
low = mid + 1
else:
high = mid - 1
return -1

print(binary_search([1, 2, 3, 4, 5, 6, 7], 4)) # 3


Here you can find essential Python Interview Resources๐Ÿ‘‡
https://t.iss.one/DataSimplifier

Like for more resources like this ๐Ÿ‘ โ™ฅ๏ธ

Share with credits: https://t.iss.one/sqlspecialist

Hope it helps :)
๐Ÿ‘6โค5
If you're a software engineer in your 20s, beware of this habit, it can kill your growth faster than anything else.

โ–บ Fake learning.

It feels productive, but it's not.

Let me give you a great example:

You wake up fired up.
Open YouTube, start a system design video.
An hour goes by. You nod, you get it (or so you think).
You switch to a course on Spring Boot. Build a to-do app.
Then read a blog on Kafka. Scroll through a thread on Redis.
By evening, you feel like youโ€™ve had a productive day.

But two weeks later?

You canโ€™t recall a single implementation detail.
You havenโ€™t written a line of code around those topics.
You just consumed, but never applied.

Thatโ€™s fake learning.

Itโ€™s learning without doing.
It gives you the illusion of growth, while keeping you stuck.

๐Ÿ“Œ Hereโ€™s how to fix it:

Watch fewer tutorials. Build more things.
Learn with a goal: โ€œIโ€™ll use this to build X.โ€

After every video, write your own summary.
Recode it from scratch.

Start documenting what you really understood vs. what felt easy.

Real growth happens when you struggle.
When you break things. When you debug.

Passive learning is comfortable.
But discomfort is where the actual skills are built.

Your 20s are for laying that solid technical foundation.
Donโ€™t waste them just โ€œwatching smart.โ€

Build. Ship. Reflect.
Thatโ€™s how you grow.

Coding Projects:๐Ÿ‘‡
https://whatsapp.com/channel/0029VazkxJ62UPB7OQhBE502

ENJOY LEARNING ๐Ÿ‘๐Ÿ‘
โค4๐Ÿ‘4