Ad
Code
Diff
  • def return_hundred(n=100):
        return (n==100)*n +(n!=100)*100
    • def return_hundred(n=100):
    • if n == 100: return n
    • return (n==100)*n +(n!=100)*100
Code
Diff
  • solution=lambda s:"".join([f"{' 'if n.isupper() else ''}{n}" for n in s]).strip()
    • def solution(s): return "".join([f" {n}"if n.isupper() else n for n in s])
    • solution=lambda s:"".join([f"{' 'if n.isupper() else ''}{n}" for n in s]).strip()