Skip to content

Instantly share code, notes, and snippets.

@aattk
Created June 20, 2021 11:50
Show Gist options
  • Select an option

  • Save aattk/8e5aa6ae2853dbad137f6336fc4f1163 to your computer and use it in GitHub Desktop.

Select an option

Save aattk/8e5aa6ae2853dbad137f6336fc4f1163 to your computer and use it in GitHub Desktop.
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