+ 4

Can any one help me at 25.2 practice of oython

10th Aug 2022, 11:37 AM
Tilak Poudel
Tilak Poudel - avatar
19 odpowiedzi
+ 4
Please mention course name and task number. Read the lesson again, then show your code attempt so we can check on it.
10th Aug 2022, 11:50 AM
Lisa
Lisa - avatar
+ 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.
10th Aug 2022, 11:58 AM
Lisa
Lisa - avatar
+ 2
print the result using the print function
10th Aug 2022, 12:00 PM
Lisa
Lisa - avatar
+ 2
Read my previous comment carefully ***AFTER*** THE LOOP, PRINT THE FINAL NUMBER OF POINTS
10th Aug 2022, 12:02 PM
Lisa
Lisa - avatar
+ 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
10th Aug 2022, 12:05 PM
Tilak Poudel
Tilak Poudel - avatar
+ 2
Have a look at the comments I made in the script: https://code.sololearn.com/crVvcBPn6J3j/?ref=app
10th Aug 2022, 12:14 PM
Lisa
Lisa - avatar
+ 1
Practice session 25.2 of while loop of python
10th Aug 2022, 11:51 AM
Tilak Poudel
Tilak Poudel - avatar
+ 1
COURSE NAME: Python for Beginners? Python Core?
10th Aug 2022, 11:53 AM
Lisa
Lisa - avatar
+ 1
How to print the final point can you help me?
10th Aug 2022, 11:59 AM
Tilak Poudel
Tilak Poudel - avatar
+ 1
I just want to print only final point but it is showing all of the point
10th Aug 2022, 12:01 PM
Tilak Poudel
Tilak Poudel - avatar
+ 1
The solution given by the team its self is wrong
10th Aug 2022, 12:02 PM
Tilak Poudel
Tilak Poudel - avatar
+ 1
Thank you ❤️
10th Aug 2022, 3:12 PM
Tilak Poudel
Tilak Poudel - avatar
+ 1
It's also a good idea to read comments on the lesson to help!
10th Aug 2022, 9:11 PM
Cameron VanNess
Cameron VanNess - avatar
0
Python for beginners
10th Aug 2022, 11:54 AM
Tilak Poudel
Tilak Poudel - avatar
0
I have got the solution
10th Aug 2022, 11:58 AM
Tilak Poudel
Tilak Poudel - avatar
0
While loop
12th Aug 2022, 12:40 AM
Md. Jahangir Hosain
Md. Jahangir Hosain - avatar
0
I realy learned something great in this chat Thank all of you guys proud yourself
12th Aug 2022, 1:02 AM
taha shahpoush
taha shahpoush - avatar
0
Hi ! ✌️ I'm xasan
12th Aug 2022, 6:52 AM
Хасан Давлатов
Хасан Давлатов - avatar
0
Ballonshooting game coding
12th Aug 2022, 11:36 AM
Harshita Nakum
Harshita Nakum - avatar