0

15.2 practice

Can someone help me with the test case 1 and 2 on 15.2 practice? When I get test case 1 correct and try to to case 2, it shows case 1 as incorrect and case 2 as correct. Been trying for like 10 hours and I can’t understand what I’m doing wrong.

9th Jan 2022, 5:27 AM
Alyson Mills
8 RĂ©ponses
+ 5
This is how you solve it: x = "cool" y = 2 print(x*y) coolcool But there’s a system error. For me there’s an error in the problem being asked and the result; the result is for a different question so I can’t move on in the lesson because of this error. So far 5 others are having the same system error problem.
10th Jan 2022, 1:34 AM
Chelsea Hada
+ 3
Hi Everyone! I tried something different and it ended up working for all Tests 1-4 although it only asked me Test 1. There’s still a system error for this section 15.2 but this solved it and I’m able to move forward. x= input() y= int(input()) print(x*y) Thank you for everyones teamwork!
10th Jan 2022, 2:02 AM
Chelsea Hada
+ 2
I’m glad I’m not the only one with issues. I can get both correct but can only do one of them. I thought it was just me!
10th Jan 2022, 1:39 AM
Alyson Mills
+ 1
I understand that, but when i get test case 1 correct, and then move to test case 2 and get that correct, it is showing test case 1 as incorrect
9th Jan 2022, 5:36 PM
Alyson Mills
+ 1
Question for Sololearn. How is 'coolcool' the output if we never wrote cool in the system? I'm a little lost at what the App is trying to teach us here.
16th Jan 2022, 5:21 AM
Sean
0
Which course are you referring to? Could you attach your attempt?
9th Jan 2022, 5:40 AM
CGM
CGM - avatar
0
x = input() print(x*8) ?? Its saying that is correct. For python beginner
9th Jan 2022, 5:55 AM
Alyson Mills
0
Alyson Mills a=int(input()) b=int(input()) print(a*b) Read the string from the input and convert it to int (since we're going to multiply two integers). Repeat for the second input. Multiply.
9th Jan 2022, 11:33 AM
John