Ad

removed all and added 2 lines

Code
Diff
  • def flip_the_number(n):
        return int(str(n)[::-1])
    • def flip_the_number(n):
    • # takes int, flips int, return int
    • r = 0
    • while n > 0:
    • r *= 10
    • r += n % 10
    • n //= 10
    • return r
    • return int(str(n)[::-1])
Code
Diff
  • def anagram_check(words):
        listed = words.split(" ") 
        first = listed[0] 
        second = listed[1] 
        first_split = (list(first))
        second_split = (list(second)) 
        if first_split[0]==second_split[0] and first_split[-1]==second_split[-1]:
            first_split_alpha = sorted(first_split)
            second_split_alpha = sorted(second_split) 
            if first_split_alpha == second_split_alpha:
                return'Super Anagram'
            else: 
                return False
        else: 
            return 'Anagram'
    • def anagram_check(words):
    • listed = words.split()
    • listed = words.split(" ")
    • first = listed[0]
    • second = listed[1]
    • first_split = (list(first))
    • second_split = (list(second))
    • if first_split[0]==second_split[0] and first_split[-1]==second_split[-1]:
    • first_split_alpha = sorted(first_split)
    • second_split_alpha = sorted(second_split)
    • if first_split_alpha == second_split_alpha:
    • return'Super Anagram'
    • else:
    • return False
    • else:
    • return 'Anagram'