How do I pass variables around in Python?
问题 I want to make a text-based fighting game, but in order to do so I need to use several functions and pass values around such as damage, weapons, and health. Please allow this code to be able to pass "weapons" "damage" "p1 n p2" throughout my code. As you can see I have tried using parameters for p1 n p2, but I am a little bit a newbie. import random def main(): print("Welcome to fight club!\nYou will be fighting next!\nMake sure you have two people ready to play!") p1=input("\nEnter player 1