|
@@ -0,0 +1,17 @@
|
|
|
+from PyInquirer import prompt, Separator
|
|
|
+
|
|
|
+widget = [
|
|
|
+ {
|
|
|
+ 'type':'list',
|
|
|
+ 'name':'lang',
|
|
|
+ 'message':'Choose your level :',
|
|
|
+ 'choices':['Easy','Medium','Hard',
|
|
|
+ Separator('<For pro gamers only>'),
|
|
|
+ 'Harder', 'Harderest', 'Relentless', 'Absurd']
|
|
|
+ }
|
|
|
+]
|
|
|
+
|
|
|
+result = prompt(widget)
|
|
|
+print('Your answer is')
|
|
|
+print(result["lang"])
|
|
|
+
|