Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- skill=input()
- command=input()
- while command!="For Azeroth" :
- if "GladiatorStance" in command:
- skill=skill.upper()
- print (skill)
- elif "DefensiveStance" in command:
- skill = skill.lower()
- print(skill)
- elif "Dispel" in command:
- command = command.split(" ")
- ind=int(command[1])
- lettertochange=command[2]
- lst_of_skill=list(skill)
- if 0<=ind<len(lst_of_skill):
- lst_of_skill[ind]=lettertochange
- skill="".join(lst_of_skill)
- print ("Success!")
- else:
- print ("Dispel too weak.")
- elif "Target Change" in command:
- command = command.split(" ")
- initial_subs = command[2]
- new_subs = command[3]
- skill=skill.replace(initial_subs,new_subs)
- print (skill)
- elif "Target Remove" in command:
- command = command.split(" ")
- sub_to_remove=command[2]
- skill=skill.replace(sub_to_remove,"")
- print (skill)
- else:
- print ("Command doesn't exist!")
- command=input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement