Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
def nametest(name):
temp=""
for i in name.split():
if i in range(ord("A"),ord("Z")+1):
#temp=name
name=name[name.find(i):name.find(" ",name.find(i))]
print("Entered loop")
break
#name=temp
return name.strip()
print("Hi, ",nametest(input("Hi! What's your name? ")),", nice to meet you.")