79424610

Date: 2025-02-09 08:41:23
Score: 0.5
Natty:
Report link

This code should work as long as your names only consist of two words:

def abbrev_name (name):  
    arr = list(name.upper().split())
    output = arr[0][0] + "." + arr[1][0]
    print(output)  
  
abbrev_name("albert einstein")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lukinator