Answer:
theSentence = input('Enter sentence: ')
theSentence = theSentence.split()
sentence_split_list =[]
for word in theSentence:
sentence_split_list.append(word[1:]+word[0]+'ay')
sentence_split_list = ' '.join(sentence_split_list)
print(sentence_split_list)
Explanation:
Using the input function in python Programming language, the user is prompted to enter a sentence. The sentence is splited and and a new list is created with this statements;
theSentence = theSentence.split()
sentence_split_list =[ ]
In this way every word in the sentence becomes an element in this list and individual operations can be carried out on them
Using the append method and list slicing in the for loop, every word in the sentence is converted to a PIG LATIN
The attached screenshot shows the code and output.
The pseudocode to find the sum of all integers that are multiples of 9, from 1 to 250.
totalSum = 0
for i from 1 to 250{
if i is divided by 9 and remainder is 0{
totalSum = totalSum + i;
}
}
print(totalSum)
in python language the code will be
totalSum = 0
for i in range(1,250):
if i%9==0:
totalSum += i
If you will run the program , the answer would be 3402.
I don'r know what your trying to use? GIMP is a free photo editing software just upload it to photobucket.
Answer:
The answer is below
Explanation:
The the sql command to list the total sales by customer , month , and product, with subtotals by customer and by month and a grand total for all product sales is:
SELECT S.CUS_CODE, T.TM_MONTH, S.P_CODE,
SUM(S.SALE_UNITS*S.SALE_PRICE) AS "TOTSALES"
FROM DWDAYSALESFACT AS S INNER JOIN DWTIME AS T ON S.TM_ID =
T.TM_ID
GROUP BY S.CUS_CODE,T.TM_MONTH,S.P_CODE WITH ROLLUP;