Permalink
Cannot retrieve contributors at this time
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?
ChatBotGroup/Greetings.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
12 lines (11 sloc)
396 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Starting a conversation | |
print("Hi!") | |
greeting = input("What is your name?: ") | |
user = str(greeting) | |
if user[0].isupper(): | |
print("Hello " + user + ",i'm glad to meet you" + "!") | |
else: | |
print("Hello " + user + ",i'm glad to meet you" + "!") | |
print("Next time you should write your name starting with capital letter :)") | |
print("The number of letters of your name is: ") | |
print(len(user)) |