Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def main():
- # Input should be in the format "first_name last_name"
- user_input = input("Enter name: ")
- blank_position = user_input.find(" ")
- # Bellow is an example of slicing strings, it changes the blank position of a first/last name into a $
- user_input = user_input[:blank_position] + $ + user_input[blank_position + 1:]
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement