Skip to content

README.md #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 6 additions & 77 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,79 +1,8 @@
# Python Projects: Chatty Bot 🐍
This repo contains python code that creates a simple console chat bot that will do wonders to guide you through the basics of coding. During this project you will also play some word and number games. <br>
Run the code.
Тематика моего проекта:
Python Projects:Чат бот🐍

ФУНКЦИИ:
Это репозиторий имеет код на python, который создает чат-бота, который будет творить чудеса, обучая основные эллементы программирования. Во время этого проекта вы можете поиграете в несколько игр со словами и цифрами. <br>

Python
```python
def greet(bot_name, birth_year):
print('Hello! My name is ' + bot_name + '.')
print('I was created in ' + birth_year + '.')


def remind_name():
print('Please, remind me your name.')
name = input()
print('What a great name you have, ' + name + '!')


def guess_age():
print('Let me guess your age.')
print('Enter remainders of dividing your age by 3, 5 and 7.')

rem3 = int(input())
rem5 = int(input())
rem7 = int(input())
age = (rem3 * 70 + rem5 * 21 + rem7 * 15) % 105

print("Your age is " + str(age) + "; that's a good time to start programming!")


def count():
print('Now I will prove to you that I can count to any number you want.')

num = int(input())
curr = 0
while curr <= num:
print(curr, '!')
curr = curr + 1


def test():
print("Let's test your programming knowledge.")

print('Why do we use methods?')
print('1. To repeat a statement multiple times.')
print('2. To decompose a program into several small subroutines.')
print('3. To determine the execution time of a program.')
print('4. To interrupt the execution of a program.')

possible_answer = 0
while possible_answer != 2:
possible_answer = int(input())
if possible_answer != 2:
print('Please, try again.')


def end():
print('Congratulations, have a nice day!')


greet('Aid', '2020') # change it as you need
remind_name()
guess_age()
count()
# ...
test()
end()

```

Output
```python
What is you name?
Good Luck! name
Guess the character...
Enter remainders by dividing your age by 3, 5 and 7.
Now I will prove to you that I can count to any number you want.

```
Реализация:
использованы Python