The string of the string
Write a function to receive a string (String) and return the number of letters
Note: To solve this question, you should not use ready -made functions
Example:
get_len('code-bezan.ir') # 13
Write a function to receive a string (String) and return the number of letters
Note: To solve this question, you should not use ready -made functions
Example:
get_len('code-bezan.ir') # 13
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
# In the following function does not calculate the distance as letters and if we want to calculate we must erase the condition def get_len(par): lenght = 0 for i in par: if i == ' ': pass else: lenght += 1 return lenght a = 'this is a test' print(get_len(a))
def toolstr(n): x = len(n) return f"tooll reshete string: {x}" print((toolstr(n=str(input("enter your tool string:")))))
i=(input("str:")) j=len(i) print(j)
def Shomarande(n) :
count = 0
for i in n :
count += 1
return count
def get_len(string): index = 0 while len(string) > index: print(index + len(string)) break while True: i = input("string: ") get_len(i)
def string_len(): x = input() print(len(x)) string_len()
a=input('word:') def func(a): return len(a) res=func(a)
Submitting answers is currently unavailable.
Write a program that receives a number from the user and prints the multiplication table as the following in the output. Yek adad vared konid: 2 x 1 = 2 2 x 2 = 4 x 3 = 6 2 x 4 = 10 x 6 = 12 2 2 x 7 = 14 2 x 7 = 2
Write a program where the user can enter the clock, minutes and seconds as the example below and from the time entered, the countdown to zero is Input: 1:22:50 # One hour and twenty minutes and fifty seconds
Write a function that receives a word and changes each letter to its next letter in the alphabet. Then returned the result. Indeed: "A" turns into "B" "" B "becomes" C "" C "becomes" D "and ........
Write a function that receives a string and converts Persian numbers into English numbers
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.