Answer:
17%
Explanation:
Given parameters:
Cost price of liquor = $4000
Total sale = $24000
Unknown:
Percentage cost of sale for liquor = ?
Solution:
To find the percentage cost of sale;
%Cost of sale of liquor =
x 100
Input the variables;
%Cost of sale of liquor =
x 100 = 16.67% = 17%
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.