Questions: 5 831

Answers by our Experts: 5 728

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 & Filtering

Write a python program which takes a number from the user and prints if it is positive if it is a multiple of 10. Hint: Odd numbers cannot be a multiple of 10.

Write a program to print T in all scales viz Celsius, Fahrenheit, and Kelvin.

Formula to convert from Fahrenheit F to Celsius C is C = (F - 32) * 5 / 9.


Given an integer N as input, write a program to print a number diamond of 2*N -1 rows

Note: There is a space after each number


write a program to print a shaded diamond of 2*N -1 rows using an asterisk(*)


Write a program to print

W pattern of N lines using an asterisk(*) character as shown below.

Note: There is a space after each asterisk * character.


Given an integer value

N as input, write a program to print a shaded diamond of 2*N -1 rows using an asterisk(*) character as shown below.

Note: There is a space after each asterisk (*) character.


Given an integer

N as input, write a program to print a number diamond of 2*N -1 rows as shown below.

Note: There is a space after each number.





ASSIGNMENT - 11

You are given a string, write a program to find whether the string is palindrome or not.

Note: Treat uppercase letters and lowercase letters as same when comparing letters. Ignore spaces and quotes within the string.Input

The first line of input is a string.

Output

The output should be

True or False.Explanation

In the given example, the string

No lemon no melon is a palindrome as we are ignoring spaces. So, the output should be True.

Sample Input 1

No lemon no melon

Sample Output 1

True

Sample Input 2

Race Cars

Sample Output 2

False





First and Last Elements of List

You are given an integer

N as input. Write a program to read N integers and print a list containing the first and last two inputs.Input

The first line of input is an integer

N. The next N lines each contains an integer.Explanation

In the given example, we are given

6 numbers 1, 2, 3, 4, 5, 6 as input.The list should contain first two integers

1, 2 and last two integers 5, 6 So, the output should be [1, 2, 5, 6].

Sample Input 1

6

1

2

3

4

5

6

Sample Output 1

[1, 2, 5, 6]

Sample Input 2

5

1

11

13

21

19

Sample Output 2

[1, 11, 21, 19]






ASSIGNMENT - 2

Largest Number in the List

You are given space-separated integers as input. Write a program to print the maximum number among the given numbers.

Input

The first line of input contains space-separated integers.

Explanation

In the example, the integers given are

1, 0, 3, 2, 9, 8. The maximum number present among them is 9. So, the output should be 9.

Sample Input 1

1 0 3 2 9 8

Sample Output 1

9

Sample Input 2

-1 -3 -4 0

Sample Output 2




LATEST TUTORIALS
APPROVED BY CLIENTS