+ 4
Can any one help me at 25.2 practice of oython
19 Answers
+ 4
Please mention course name and task number.
Read the lesson again, then show your code attempt so we can check on it.
+ 3
What they do you need?
Approach:
* Make a variable with the initial number of points
* Create a loop
* get input inside the loop
* depending on if the input is hit or miss, add or reduce the number of points
* after the loop, print the final number of points.
+ 2
print the result using the print function
+ 2
Read my previous comment carefully
***AFTER*** THE LOOP, PRINT THE FINAL NUMBER OF POINTS
+ 2
i = 0
x = 100
while i < 4:
text = input()
if text == "hit":
x = x + 10
i=i+1
else:
x= x - 20
i = i +1
print (x)
Im beignner
So i don't know to print only last point .. this code is showing all the point so help me
+ 2
Have a look at the comments I made in the script:
https://code.sololearn.com/crVvcBPn6J3j/?ref=app
+ 1
Practice session 25.2 of while loop of python
+ 1
COURSE NAME: Python for Beginners? Python Core?
+ 1
How to print the final point can you help me?
+ 1
I just want to print only final point but it is showing all of the point
+ 1
The solution given by the team its self is wrong
+ 1
Thank you ❤️
+ 1
It's also a good idea to read comments on the lesson to help!
0
Python for beginners
0
I have got the solution
0
While loop
0
I realy learned something great in this chat
Thank all of you guys
proud yourself
0
Hi ! ✌️ I'm xasan
0
Ballonshooting game coding