Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string = "مرحبا انا استخدم لغة بايثون"
- count=0
- for i in string:
- if (i.isspace()) == True:
- count+=1
- if count != 0 :
- print(count)
- else:
- print("لاتوجد مسافات")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement