# Python pls help :/

**URL:** <https://discourse.processing.org/t/python-pls-help/16783>\
**Category:** Processing.py\
**Created:** [January 1, 2020, 6:04pm UTC](https://discourse.processing.org/t/python-pls-help/16783 "2020-01-01T18:04:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dominik\_rgn](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@Dominik\_rgn](https://discourse.processing.org/u/Dominik_rgn)\
**Post date:** [January 1, 2020, 6:04pm UTC](https://discourse.processing.org/t/python-pls-help/16783/1 "2020-01-01T18:04:56Z")

</div>

I have a python question I have found a chat bot and would like to continue but it doesnt work because I cannot use the spacebar for the questions I write, can someone help me why this is not possible?

import random

zufallsantworten=[“Das weiß ich leider nicht”, “Da bin ich mir leider nicht sicher:(”]

reaktionsantworten = {“hallo”: “Hallo Dominik”,  
“geh t”: “Was verstehst du darunter?”,  
“essen”: “Ich habe leider keinen Geschmackssinn :(”,  
“wg?”: “Gt und dir?”,  
“auch”:“okey”  
}

print(“Willkommen beim Chatbot”)  
print(“Worüber würden Sie gerne heute sprechen?”)  
print(“Zum beenden einfach ‘bye’ eintippen”)  
print("")

nutzereingabe = “”  
while nutzereingabe != “bye”:  
nutzereingabe = “”  
while nutzereingabe == “”:  
nutzereingabe = input("Dominik: ")

```
nutzereingabe = nutzereingabe.lower()
nutzerwoerter = nutzereingabe.split()

intelligenteAntworten = False
for einzelwoerter in nutzerwoerter:
    if einzelwoerter in reaktionsantworten:
        print(reaktionsantworten[einzelwoerter])
        intelligenteAntworten = True
if intelligenteAntworten == False:
    print(random.choice(zufallsantworten))
   
print("")

```

print(“Einen schönen Tag dir. Bis zum nächsten Mal”)

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [January 1, 2020, 8:45pm UTC](https://discourse.processing.org/t/python-pls-help/16783/2 "2020-01-01T20:45:58Z")

</div>

> [@Displaying console in exported executable output](https://discourse.processing.org/t/displaying-console-in-exported-executable-output/15816/2):
>
> PDE (Processing’s IDE) got its own console, which isn’t the same as the OS console 1. I tried to redirect print to the real \_\_stdout\_\_ console but it didn’t work on the win console: print \>\> sys.\_\_stdout\_\_, 'Am I displayable?' But when I tried Git’s bash, everything got displayed there! And no \_\_stdout\_\_ was needed. Vanilla print just works: print 'Am I displayable?' And Git’s bash also works on exported Java Mode sketches! Just be aware that Git’s bash, just like any Unix bash, we need …
