Assume that word is a variable of type String that has been assigned a value. Write an expression whose value is a String consis ting of the first three characters of the value of word. So if the value of word were dystopia" the expression's value would be "dys"."
1 answer:
Answer:
Follwing is the python code:-
word=str(input("Enter the string\n"))
new=word[0:3] #expression for first three characters of the string.
print(new)
Output:-
Enter the string
chandelier
cha
Explanation:
The expression word[0:3] is for extracting first three characters form the string.
word[0:3] = It extracts characters from index 0 to index 2 it does not include 3.3 is excluded.
You might be interested in
A deque is a type of list
I belive its true but i am not a 100% sure
Answer:
i would say long term
Explanation:
if she is planning for a while on how she is gonna get the first place award and its a long period of time before the next history project i would go with long term
Answer:
Xrays, Ultrasounds, managing patient records, communicating with colleagues, etc.
its less is more A
to much could make it really bad