0

Is there a way of Making this shorter?

I want to make my code a little bit shorter to not take alot of space please help! https://code.sololearn.com/cg6QHIpjIs0k/?ref=app

22nd Oct 2018, 9:47 PM
Vanessa Nilsson
2 Answers
0
print(input('Name?\n').split(' ')[0] or 'unknown')
22nd Oct 2018, 10:36 PM
Ulisses Cruz
Ulisses Cruz - avatar
0
thanks
22nd Oct 2018, 10:37 PM
Vanessa Nilsson