-
Notifications
You must be signed in to change notification settings - Fork 23
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
Pavel intalov #25
base: Pavel_Intalov
Are you sure you want to change the base?
Pavel intalov #25
Conversation
from re import X | ||
from tkinter import Y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
вот эти 2 импорта не нужны
@@ -0,0 +1,22 @@ | |||
import math |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
не забывайцте добавлять расширение файла - .py
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] | ||
b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13] | ||
#заменил for k in b | ||
# if k in a | ||
#c.append(k) | ||
#print(c) | ||
result = list(set(a) & set(b)) | ||
print(result) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это хорошо бы в функцию обернуть
No description provided.