+ 2

Code coaches

Pls tell me how to get more than one outputs in code coches in python. Here is the code coach. https://www.sololearn.com/coach/39?ref=app

30th Mar 2024, 3:15 PM
Vivek Maurya
Vivek Maurya - avatar
2 Antworten
+ 3
Vivek Maurya , the coach exercise you mentioned requires just *one* output. since we can not see your code, put it in playground, save it and post a link to it here.
30th Mar 2024, 8:30 PM
Lothar
Lothar - avatar
0
Vivek Maurya , If you're asking how to choose which of multiple possible outputs to print, use an if compound statement (which includes else). https://docs.python.org/3/tutorial/controlflow.html#if-statements https://docs.python.org/3/reference/compound_stmts.html#the-if-statement
30th Mar 2024, 8:38 PM
Rain
Rain - avatar