Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. film = """Ciao 2018
  2. - We 2019
  3. - Cià
  4. - Hehee 20**"""
  5.  
  6. print(film.split("\n- "))
  7. def x():
  8. listaa = "ciao 21**"
  9. for a in film:
  10. lista = list(a)
  11. print(lista)
  12. dates = (lista[-4::1])
  13. if str(lista[-4::1]).isdigit():
  14. print(str(lista[-4::1]))
  15. else:
  16. print(str(lista[-4::1]))
  17. global datee
  18. for date in dates:
  19. if date.isdigit():
  20. datee = True
  21. continue
  22. else:
  23. print("no bro")
  24. datee = False
  25. return
  26.  
  27. x()
  28. print(datee)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement