Skip to content

Commit

Permalink
Merge pull request #3169 from blondon1/patch-2
Browse files Browse the repository at this point in the history
Use os.system for clearing screen
  • Loading branch information
avinashkranjan authored Jun 5, 2024
2 parents 65eaabf + 09fc067 commit b60259e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AI Calculator/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from chatterbot import ChatBot

import os
# naming the ChatBot calculator
# using mathematical evaluation logic
# the calculator AI will not learn with the user input
Expand All @@ -10,7 +10,7 @@


# clear the screen and start the calculator
print('\033c')
os.system('cls' if os.name == 'nt' else 'clear')
print("Hello, I am a calculator. How may I help you?")
while (True):
# take the input from the user
Expand Down

0 comments on commit b60259e

Please sign in to comment.