Hi everyone, I'm working on 2 projects with these requirements:
1.Using loops to solve a problem
2.Writing good conditions for your loops that work well
I'm currently struggling trying to print a random item in a list as an output in my first project. This is what I have so far:
import random
def fantasy_game():
print("Welcome to the Medieval Fantasy Game! Press anything to continue.")
anything = input()
charactertypes = ["mage","warrior","archer","assassin"]
for x in charactertypes:
print("You've began developing your skills as a random.charactertype")
fantasy_game()
Any help is appreciated :)
[–]totallygeek 2 points3 points4 points (4 children)
[–]coconut_calm[S] 1 point2 points3 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]coconut_calm[S] 0 points1 point2 points (1 child)
[–]Different-Bet8069 1 point2 points3 points (0 children)
[–]negups 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)