Advertisement
DrAungWinHtut

errorfix.py

Mar 18th, 2023
1,164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. def length(s):  # function define
  2.     count = 0
  3.     for c in s:
  4.         count += 1
  5.  
  6.     return count
  7.  
  8.  
  9. str = '081234'
  10. size = length(str)
  11. print(size)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement