#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Alex Li

#names = "alex,jack,rain"

#name2= names.split(",")
#print(name2)
#print( "|".join(name2) )
#username = input("user:")
#if username.strip() == 'alex':
#    print("welcome")

name = "alex li"
#print(name[2:4])
#print(name.center(40,'-') )
#print(name.find('sdfs') )

#print('' in name) #有没有空格

#print(name.capitalize())
#msg = "Hello, {name}, it's been a long {age} since last time sopke..."
#msg2 = "hahah{0}, dddd{1}"
#print(msg2.format('Alex',33))
#msg2 = msg.format(name='MingHu', age=333)
#print(msg2)
'''
age = input("your age:")
if age.isdigit():
    age = int(age)
else:
    print("invalid data type")
    '''
name ='alex3sdf'
print(name.isalnum() )
print(name.endswith('dfsd') )
print(name.startswith('dfsd') )
print(name.upper().lower())
