Python Tutorials - Anagrams | Program To Check Given Two Strings Are Anagram or Not
HTML-код
- Опубликовано: 21 сен 2024
- In this Python Pattern programming video tutorial you will learn about Anagrams in detail.
An anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.
To Check the given two strings are anagrams or not we need to sort the given strings first, then we need to compare that, if it matches then given strings are anagram or else it is not.
sorted() :
• Python Tutorials - Sor...
#Python #PythonProgramming
For more free tutorials on computer programming
/ amulsacademy
/ amulsacademy
this channel is awesome! please bring videos of tough leetcode problems.
I always luv to tel this I love yua voice ....
Really useful your videos and hats off for your effort... I shared to my friends, every one appreciate me.. that's for your effort.. really superb, kindly continue this work
Thank u so much 😍....Khup chhan explain karun sangital ahe tumhi ,I am going to watch your all videos
Very nice program and easy to understand!!
Thank you so much your explanation of concepts really helped me
Glad to hear that 😊
example with python 3.8
print('anagram' if len(str1:=input('str: ')) == len(str2:=input('str: ')) and sorted(str1) == sorted(str2) else 'not anagram')
What a explanation..! simply superb.
Thank you :)
Can you please write programs related to simple applications like calculator, forms etc..
Sure :)
From what i can tell, this program only checks to see if the two strings have the same letters but does not check to see if both are actually words/phrases
Thnx u so much u r really a great teacher love you 🙏
hi madam i got one question in interview .(input is logva but output shoud be volga please explaine )
Full question please :)
@@AmulsAcademy codeforces.com/problemset/problem/746/B this is the link of questions
@@sivakrishna9083 bro just sort the string in reverse order
Write the program Abc but aA=b and b=c and c=d how will write please help me because there is no d in input
What's the difference between sorted function and sort.str1 I thought you can sort by using sort.str1
Yes but sort method modify the list in place, it sorts original list.
In sorted, it will return new list.
:)
Very helpful and clever
Beautiful voice...
Preety voice mam
please upload videos on python pyplot.....from its basics
Can you make a video about pronic number
Yes i can and i will make it soon :)
Check length also if it is not same than not anagram
Love your stuff.
Thank you :)
Can you please write a program to find the anagrams in a text file and returning the anagrams to a list? Please!!
I will try :)
thank you very much !!
You are welcome! :)
Hi mam
Please try to explain code for possible Anagrams for a given string .Example :bcda what are the possible Anagrams
Take the length of string then take factorial of that length
any way to do this by recursion?
Best video..
Thank you :)
Can you pls tell program on pangrams
Will try :)
Terima kasih🙏🏻
Helpful 😍
Thank you :)
01:28 If you are bad, i am your dad.
So Mr. Dad's son is Mr. Bad.
How to check this with multiple strings,sisy
First take all inputs, then reverse the string and store it another variable lastly compare the input with reversed string 😊
Sorted is not the function of strings it is function of list
How can we check this without converting list.
sort is a list method, you can use sorted on iterables and string is an iterable 😊
How to create python package????
How to return all possible anagrams for a given string in python ?
Please explain
Maybe You would have to use random function.
Can we use sort instead of sorted?
sort is a list method, we can use that only with list.
you can convert the string to list then you can use sort().
:)
@@AmulsAcademy tq 😊