We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 65eaabf + 09fc067 commit b60259eCopy full SHA for b60259e
AI Calculator/main.py
@@ -1,5 +1,5 @@
1
from chatterbot import ChatBot
2
-
+import os
3
# naming the ChatBot calculator
4
# using mathematical evaluation logic
5
# the calculator AI will not learn with the user input
@@ -10,7 +10,7 @@
10
11
12
# clear the screen and start the calculator
13
-print('\033c')
+os.system('cls' if os.name == 'nt' else 'clear')
14
print("Hello, I am a calculator. How may I help you?")
15
while (True):
16
# take the input from the user
0 commit comments