sentence = input("Enter a sentence")
print(sentence)
sentence.split()
split = sentence.split()
word = input("Enter a word from your sentence...")
if word in split:
***** print("The word: ",word," is located on",split(pos))
else:
***** print("Error! Word not found in your sentence.")
sentence = input("Enter a sentence")
print(sentence)
sentence.split()
split = sentence.split()
word = input("Enter a word from your sentence...")
if word in split:
***** print("The word: ",word," is located on",split(pos))
else:
***** print("Error! Word not found in your sentence.")
def isalphaspace(string):
return all(x.isalpha() or x.isspace() for x in string);
sentence = input("Enter a sentence: ")
word = input("Enter a word from your sentence: ")
if not isalphaspace(sentence) or not isalphaspace(word):
print("Input can only be letters");
quit();
if word in sentence:
print("The word: ", word, " is located on", sentence.lower().find(word.lower()))
else:
print("Error! Word not found in your sentence.")
sentence = input("Enter a sentence")
print(sentence)
sentence.split()
split = sentence.split()
word = input("Enter a word from your sentence...")
if word in split:
***** print("The word: ",word," is located on",split(pos))
else:
***** print("Error! Word not found in your sentence.")
def isalphaspace(string):
return all(x.isalpha() or x.isspace() for x in string);
sentence = input("Enter a sentence: ")
word = input("Enter a word from your sentence: ")
if not isalphaspace(sentence) or not isalphaspace(word):
print("Input can only be letters");
quit();
if word in sentence:
print("The word: ", word, " is located on", sentence.lower().find(word.lower()))
else:
print("Error! Word not found in your sentence.")
Copyright © 2024, NextGenUpdate.
All Rights Reserved.