Question:
A knight tried to cross a valley covered by toxic fog. Fortunately, the knight prepared medicinal potions in advance. He only need to make the right the concentration in different proportions.We that the knight carries n kinds of potions with n different concentrations, the volume...
Question:
A soccer team is looking for girls from ages 10 to 12 to play on their team. Write a program to ask the user’s age and if male or female (using “m” or “f”). Display a message indicating whether the person is eligible to play on the team.
Sample Input 1:
Age:...
Question:
Continue modify the war-robot program we made in the class, so that:
it will be the enemy’s turn to strike you back. Enemy can only use gun to fire and cause damage between 50-90.
after enemy’s turn, if your hp is lower or equal to...
Question 1:
Please using easygui to create the program we made in the class. The enter box will ask you password, if you get the right password, the msgbox will display the following image (You need download the following images and save into the same folder...
You can do Question 1~ 3 in Python IDLE:
Question 1.
Use float() to create a number from a string like ‘12.34’. Make sure the result is really a number!
Question 2.
Try using int() to create an integer from a decimal number like 56.78. Did the answer get rounded up...
uestion 1:
Write a program that asks the user to enter his/her name, age, favorite color, and favorite food. Have the program save all four items to a text file called myinfo.txt, each one on a separate line.
Question 2:
Write a program that asks the user to enter...