Created
June 20, 2021 11:50
-
-
Save aattk/8e5aa6ae2853dbad137f6336fc4f1163 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def a(lst,k): | |
| for i in lst: | |
| b = int(k) - i | |
| if list.count(b) > 0: | |
| print(f"{i}+{b}={i+b}") | |
| return True | |
| return False | |
| list = [10,15,3,10,7] | |
| num = input("Bir sayi giriniz : ") | |
| print(a(list,num)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment