code-creator_55763

1

Jun 18th, 2021 (edited)
826
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Задача №1
  2. def card_hide(card):
  3.     if len(card) < 5: return card
  4.     return "*" * len(card[4:]) + card[:4]
  5.  
  6. print(card_hide("1234123456785678"))
  7. print(card_hide("8754456321113213"))
  8. print(card_hide("35123413355523"))
  9.  
  10. print(card_hide("1234"))
  11.  
  12.  
  13.  
RAW Paste Data