Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs

Repeating in Python


Hello, world! I am currently working on a AI and I would like to repeat the code,

if UserInput == "hi": print(AI_Name + ": Hello!") elif UserInput == "who made you": print(AI_Name + ": I was made by Aric Miller") if UserInput == "who are you": print(AI_Name + ": I'm " + AI_Name + "! I can do lots of things.")

But I am not sure how to do that. Could you help me?
Thanks in advance!
-Aric Miller (


2 years ago
You are viewing a single comment. View All