Advertisement
Nenogzar

Untitled

Feb 23rd, 2024
989
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. def info(val = [1,2,3]):
  2.     for num in range(len(val)):
  3.         val[num] += 1;
  4.     return list(val)
  5.  
  6. print(info())
  7. print(info())
  8. print(info())
  9.  
  10.  
  11.  
  12. def info1(val1 = 1):
  13.     val1 += 1;
  14.     return val1
  15.  
  16. print(info1())
  17. print(info1())
  18. print(info1())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement