+ 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
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.
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