Python Oppe Practice Question 1 | python code for anagrams : is_anagram | Oppe 1 revision python

preview_player
Показать описание
Join this channel to get access to perks:

In this lecture we will write python code for anagrams. We will look into what are anagrams, develop logic to solve the question, write the code and look at important tips. This also serves as python oppe practice question 1

BIO🧑‍🦱
Hello everyone👋,
I am diploma student of @IITMadrasBSDegreeProgramme . I hope my videos will help you.

Additional Links

Chapters
00:00 - Understand Qn
01:06 - Identify Key Pattern
02:49 - The Logic
06:06 - The Code
09:13 - Results
09:50 - Homework
10:26 - Contact Us for help & Thanks

Hashtags
#iitmadras #pythonprogramming #pythonexercises #exampreparation #devloperhs
Рекомендации по теме
Комментарии
Автор

You are doing great buddy!!!
Keep it up! 💪
More power to you 🙌🙌🙌

Param
Автор

def anagram(L):
str = sorted(L[0])
all_anagram = True
for words in L:
if sorted(words)!=str:
all_anagram = False
break
if all_anagram:
return True
else:
return False
L = ['listen', 'silent', 'enlist']
print(anagram(L))

HappySingh-lhwz
Автор

def is_anagram(L):
ref=sorted(L[0])
all_anagram=True
for words in L:
if sorted(words)!=ref:
all_anagram=False
break;
if all_anagram:
print("True")
else:
print("False")

PRATHAMGUPTA-ew
Автор

Bhaiya kya aap last term oppe1 ka questions ka solution video banayenge🙃

ayendrilasutradhar
Автор

hi harsh is this code correct :
a = ['silent', 'listen', 'k']
mk = False

for x in a:
for z in a:
if sorted(x) != sorted(z):
mk = False
break;
else:
for m in sorted(x):
for n in sorted(z):
if m == n:
mk = True
if mk:
print('The Words are anagram to each other')
else:
print("The Words are not anagram to each other")

KbEditz_
Автор

Bhaiya aisi vedio aur aayegi oppe se pehle toh help hojayegi

PRACHISINGH-xc
Автор

SCT same day hoga ya ek do din pehle also 2gb windows 7 eniugh hoga kya bhaiyaa plzz replyy

priyadarshini