very first Python !!

+1 name family · April 25, 2014
hey every one , 
just for Bucky , 
this is a very simple python program that have been made for names , i mean , you can use it as a module , and use it for names from input or everywhere else , 

# uppercase by BuckysRoom
name = raw_input ('what is the name : ')
namelst=list (name)
namelst1st=namelst [0]
namelst1st=namelst1st.upper()
namelst.insert(0,namelst1st)
namelst.pop(1)
out=''.join(namelst)
print 'hey ' + out
raw_input ('press<enter>')

i should apologize if it seems very poor code , but i though maybe s.o. will need that ;) 

Post a Reply

Replies

Oldest  Newest  Rating
+2 William Frost · July 19, 2014
Keep up learning mate. I think you have it :)
+1 Bucky Roberts · April 27, 2014
Awesome :)
+1 Willard Stevane · April 27, 2014
Looks good.
0 name family · August 10, 2014
this is a new version of Python code use for making first letter of the name Uppercase 
i just did it today , 
again apologize 'cause of being so simple  
------ 
#@Bucky's_Room 
#NameUpperCase
#Python 2.7

name = raw_input ("pls enter your name : ") #name input

FirstCharUpperCase = name[0].upper() #just the first character in uppercase form

name = FirstCharUpperCase + name[1:] #setting first letter with uppercase form

print name #print out name !


thanks guys  
0 name family · August 10, 2014
and also this one :D :P 

i think im growing :S 

#python2.7
#bucky'sRoom
name = raw_input ("please say the name : ")
name = name.capitalize() #this command make first letter uppercase and the rest lower case ;)
print name
0 Michael Okoloba · April 20, 2015
print("Hello " +input('what is the name : ').capitalize()) # One line of your program not clean but the below one is cool


"""
name = input('what is the name : ') # One line of your program not clean but the below one is cool
print name.capitalize()
"""
  • 1

Python

107,089 followers
About

This section is all about snakes! Just kidding.

Links
Moderators
Bucky Roberts Administrator