davegimo

es1 giovanni

May 4th, 2022
912
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. def es1(s1,s2,s3):
  2.     s4 = ""
  3.  
  4.     for lettera in s1:
  5.         if lettera in s2 and lettera not in s3 and lettera not in s4:
  6.             s4 += lettera
  7.  
  8.     return s4
  9.  
  10.  
  11. a = "albero"
  12. b = "libero"
  13. c = "roma"
  14.  
  15. d = es1(a,b,c)
  16. print(d)
  17.  
Advertisement
Add Comment
Please, Sign In to add comment