0

Your ideas to improve such a simple code, please?

https://code.sololearn.com/catljEllsw5t/?ref=app

8th Dec 2018, 2:59 PM
Ahmad Ali
Ahmad Ali - avatar
2 ответов
+ 4
You don't need the first "time" assignation, also I would import the necessary modules at the beginning of the program I would make the program as this: https://code.sololearn.com/cx6YzFqW1biN/?ref=app
8th Dec 2018, 5:37 PM
Albus70007
Albus70007 - avatar
+ 4
This is about as short as you can make it from random import choice as c t = input() print(c(("good", "bad")))
9th Dec 2018, 5:42 AM
David Ashton
David Ashton - avatar