0

Multiple codes in one on Code Coach

Is there a way to end a program so Sololearn does not continue to register second program twice? It reads my first code twice (first time and again in my second different code). What am I missing? This code is from the hovercraft puzzle. The first chunk works. Itā€™s the inclusion of the first output string in the second program that is the problem. Any advice? x = 10 if x == 10: print(('Broke Even')) else: print(('loss')) y = 7 if y == 7: print(('Profit'))

1st Feb 2021, 4:04 AM
DigiDragon
DigiDragon - avatar
3 Answers
0
I didn't get you bro! Please explain more and post your codes or smth so we can understand what you mean ! Have a nice day !
2nd Feb 2021, 4:44 PM
Hisham YUM šŸ‡²šŸ‡¦
Hisham YUM šŸ‡²šŸ‡¦ - avatar
0
I guess I should have asked how to post code on this discussion boards. When Iā€™ve tried to the app wont cut and paste my code. Iā€™ll try to post my code later. my problem in code coach has something to do with strings.
2nd Feb 2021, 9:09 PM
DigiDragon
DigiDragon - avatar
0
You can click in the "+" at the buttom right and choose insert code. It should work!
2nd Feb 2021, 9:30 PM
Hisham YUM šŸ‡²šŸ‡¦
Hisham YUM šŸ‡²šŸ‡¦ - avatar