0
Need help on this. I’m a beginner and I don’t know how to do this.
I’m trying to make a prototype AI based on what I know on Python (which is next to nothing, if I’m being honest) and I have no idea how to print a string based on a specific user input.
4 ответов
+ 2
Then you should first get started with the basics at:
https://www.sololearn.com/learn/courses/JUMP_LINK__&&__python__&&__JUMP_LINK-introduction
Then move to intermediate, then to developer.
Making a real AI is hard but after learning basics - you can make some simple chatbots with using dictionaries or if-else trees
0
Hi! you probably meant something like that?
user_input = input()
# this input will be saved as a data type - string
print(user_input)
0
Not really.
I wasn’t clear, I guess.
I meant more along the lines of if a specifc input() command was entered, it would print a specific line of code.
0
Are you referring to f-string? Or a more complex like AI chatbot: when a user type something, it will output a response based on user input? I believe you need API for this.