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.
Design the database of a restaurant and write a query about making tables and keys. Tips: In this restaurant we want to have a list of foods, orders and customers in the system
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 program that receives a one -digit number from the input and finds the coefficient of smaller than 100 of those numbers and prints in the output
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.