.....If the colors are from different segments of the color wheel.
Invented by William Oughtred in the 1600s but only used in the mid 1800s
Answer:
def isAnagram(s1, s2):
list1=s1
list2=s2
sortedlist1 = sorted(list1)
sortedlist2 = sorted(list2)
if sortedlist1 == sortedlist2:
print(list1+ " and "+list2+ " are anagram")
else:
print(list1+ " and "+list2+ " are not anagram")
Explanation:
Here is a call to the function isAnagram():
list1 =input("Enter String1 ")
list1 =input("Enter String2 ")
isAnagram(list1,list2)
Attached is the run and output for this program
Answer:
The <em>break</em> keyword is how you interrupt a while loop.
the syntax looks like this ↓
Python ↓
while <em>true</em>:
<em>break</em>
Java script ↓
while (<em>true</em>);
<em>break</em>