Username

In [7]:
def main():
    first = input("Please enter your first name: ")
    last = input("Please enter your last name: ")
    
    uname = first[0] + last[0:7]
    uname = uname.lower()
    print(uname)
In [8]:
s = "Foobar"
s[0:100]
Out[8]:
'Foobar'
In [9]:
main()
Please enter your first name: Richard
Please enter your last name: Sarkis
rsarkis
In [10]:
main()
Please enter your first name: Donna
Please enter your last name: Rostenkowski
drostenk
In [ ]: