-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathname.py
More file actions
43 lines (39 loc) · 777 Bytes
/
name.py
File metadata and controls
43 lines (39 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# name.py
# coding:utf-8
#import pdb
#def regular(inStr):
# pdb.set_trace()
# strTemp1 = inStr.upper()
# strTemp2 = "%s" % (inStr[:2].upper() + inStr[2:])
# strTemp = "%s" % (inStr[:1].upper() + inStr[1:])
# pdb.set_trace()
# return "%s" % (inStr[:2].upper() + inStr[2:])
def regular(v):
# print len(v)
# return v.title()
str = ''
for i in range(0, len(v)):
if 0 == i:
str += v[i].upper()
else:
str += v[i].lower()
return str
# num = len(v)
# print num
# while x < num:
# if 1 == x:
# v[x].upper()
# else:
# v[x].lower()
#
# return v
ls = ['AdM','xuebIng','BAldwin']
s = ''
s = raw_input()
#for x in xrange(0, 3):
# s = raw_input()
# print s
# ls.append(s)
print ls
print map(regular, ls)
#print ls