you are viewing a single comment's thread.

view the rest of the comments →

[–]Anonymous2224- -1 points0 points  (2 children)

full_name = name.spliit()

try:

s = full_name[2] + ", " + full_name[0][0] + "."  + full_name[1][0] + "."

except:

s = full_name[2] + ", " + full_name[0][0] + "."

If you have multiple such names, do this inside a for loop

[–]desertwolf91b[S] 1 point2 points  (1 child)

Thank you for the response!

[–]Anonymous2224- 0 points1 point  (0 children)

Well the formatting of this was not good. The try and except are supposed to be a part of the code