Cutting the text
Write a program that receives a text from the input and, as in the example below, print from the first to the first point of that text
Write a program that receives a text from the input and, as in the example below, print from the first to the first point of that text
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
def text(): text = input('enter a text :') text=text.partition('.') print(text[0]) text()
i = input("E :") s = i.find("." + "n." +"i." + "..") print(i) E=Amir.hossein.Naei. ..
# Receive Input and Construction Text = input('Please enter text : ') dot = 0 # Find the first point dot = Text.find('.') # Remove the additional sections and display the result if dot != -1 : print('\n\n ' + Text[:dot]) else : print('\n\n ' + Text)
a = input('enter your discriptions:')
r = a.find('.')
print(a[0 : r])
inStr=input("matn ra vared konid: ") print(inStr[:inStr.find('.')])
# Taking the text from the input Text = input('Enter Text:') # Find the first point in the text find = Text.find('.') # Printing up to the first point of the text print(Text[0:find])
def tx(text): x = text[0:28+1] return x print(tx(text=input("enter your name:")))
Submitting answers is currently unavailable.
Write a function that receives a list (array) as a parameter, and deletes its duplicate items and returns the new (array) list
Write a program that gets the user's age from the input and calculates and prints the user's birthday
Write a program that receives the user's age from the input and checks that if the user was younger than 1, it would be a throw/raise error, otherwise print a welcome message
Write a program that translates the following words from Farsi to English and vice versa. The program must be implemented infinitely and it is possible to add new words easily words: Hello = hello goodbye = bye Kata ...
Define a class of User that has a username, email and password and the following methods. Print: Print username and email in the output IS_Gmail: Check whether the user's email is Gmail and ...
The program receives the amount of distance traveled to kilometers and the amount of fuel consumed in liter and prints according to the following instructions, whether the car is low or high. If the fuel consumption of this car is less than 7 liters ...
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.