Skip to content

Instantly share code, notes, and snippets.

@savolla
Last active March 8, 2017 17:50
Show Gist options
  • Save savolla/3f2b38ffb002930dd13866479d3da6d3 to your computer and use it in GitHub Desktop.
Save savolla/3f2b38ffb002930dd13866479d3da6d3 to your computer and use it in GitHub Desktop.
#savolla and his playground.
#whats the differance between the first and second lines?
#this program tells us the answer
#let's say we want to see not repetitive characters
first_line = "hdfjsgkfffgklf25kso3fgşslkdfjdsşlkydfhfgjfurıurrljhpw"
second_line = "rğıyooooooooncxbnb909brmrgpoıunrnpn4yyyyyyyyyyckdlsd"
difference = ""
for i in first_line:
if i not in second_line:
if i not in difference:
difference += i
print(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment