Python Answers

Questions answered by Experts: 5 288

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

I want you to make an array of numbers for me. All you have to do is make a program that will let me input any random integer in one line. Afterwards, it will then print out all the numbers I've inputted, backwards, on separate lines.


Care to do that for me?


Input

The first line contains the size of the array.

The next line contains the integers separated by a space.

5
1·64·32·2·11

Output

Multiple lines containing integers on each.

11
2
32
64
1





I want you to make an array of numbers for me. All you have to do is make a program that will let me input any random integer in one line. Afterwards, it will then print out all the numbers I've inputted, backwards, on separate lines. Care to do that for me? Input The first line contains the size of the array. The next line contains the integers separated by a space. 5 1·64·32·2·11 Output Multiple lines containing integers on each. 11 2 32 64 1
I want you to make an array of numbers for me. All you have to do is make a program that will let me input any random integer in one line. Afterwards, it will then print out all the numbers I've inputted, backwards, on separate lines. Care to do that for me? Input The first line contains the size of the array. The next line contains the integers separated by a space. 5 1·64·32·2·11 Output Multiple lines containing integers on each. 11 2 32 64 1
A student would like to select a suitable T-shirt from local shops. The colour could be red, blue or white, the size needs to be medium and the shop must be no more than 10 miles away. Write a python program for the given scenario.

adding of two polynomials programs in python


can you please take out the half name of your full name by index method


First Perfect Square

Given two integers (M and N), write a program to print the first perfect square in a given range.Input


The first line of input will contain a positive integer (M).

The second line of input will contain a positive integer (N).Output


The output should be a single line containing the first perfect square in a given range.Explanation


For example, if the given numbers are M is 4 and N is 16, the perfect squares from 4 to 16 are 4(2 * 2), 9(3 * 3), and 16(4 * 4), as the first perfect square is 4. So the output should be 4.


Sample Input 1

4

16


Sample Output 1

4


Sample Input 2

5

8


Sample Output 2

No Perfect Square


Can you identify if Cody's name is spelled right? If so, then make a program that accepts four one-letter strings separated by space and print "Correct" if the inputted strings, combined in order, spell the name Cody correctly. If not, print "Wrong". It doesn't matter if it's in uppercase or lowercase, as long as it's spelled correctly, it's considered correct.


Now, will you take on this task?


Write a program to check the overlapping of one string's suffix with the prefix of another strings Explanation: for example if the given string A and B are "ramisgood", "goodforall" The output should be "good" as overlaps as a suffix of the first string and prefix of next Sample input 1 ramisgood goodforall Sample output 1 good Sample input 2 Finally Restforall Sample output 2 No overlapping

5. String[1] Check


by CodeChum Admin


As long as you haven't forgotten about indexing, you'll be just fine.


Instructions


Input three strings in different lines.

Print out "Same" if all of their 2nd characters are the same, else print out "Not the Same".


Input


Three lines containing a string on each.


Cry

Priest

Fry


Output


A line containing a string.


Same


LATEST TUTORIALS
APPROVED BY CLIENTS