Random text on Python
📁 python, пример, новичок
How to make a random text on Python? So that he displays only 1 variable out of two? For example, I take two variables with the following value:
Import Randomrole1 = "" Peaceful resident "" role2 = "" mafia "" role = randon.randomint (Role1, Role2) print ("" You - "" " +" " Role) input ("" "" "" "" "" "" and I need only one variable to be displayed during the output of the text. Moreover, for every time - different, then Role1, then Role2, then again Role1. I hope, clearly explained. I am a beginner in Python and I ask you to answer more details.
Ответов пока нет.
Войдите чтобы оставить ответ
Блоги
Generics в C#: зачем нужны и как использовать