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

Hollow Rectangle - 2

Write a program to print a rectangle pattern of M rows and N columns using the characters as shown below.


Half Pyramid - 4

Given an integer N as a starting number and K as input, write a program to print a number pyramid of K rows as shown below.


Replacing Characters of Sentence

You are given a string s,write a program to replace each letter of the string with the next letter that comes in the English Alphabet.


Replacing Characters of Sentence

You are given a string S,write a program to replace each letter of the string with the next letter that comes in the English Alphabet.


https://www.assignmentexpert.com/homework-answers/programming-and-computer-science/python/question-175894

Even though i wrote this correctly but i am not able to get propwr output


Even though i write this code i am not able to get proper output.please help me to do. This


8. Square Root

by CodeChum Admin


You've learned in the past lessons on how to use square root functions, right? Then let's take your knowledge to the test. Print out the square root of a given integer with only two decimal places.


Ready, solve, and go!


Input


A line containing an integer.


4


Output


A line containing a decimal with two decimal places.


2.00


7. Enumeration

by CodeChum Admin


Have you ever answered a test question that tells you to enumerate a series of things, but the answer must be in a sentence? Quite tiring to write those things separated by commas and a single space, isn't it?


Then let's try coding it instead!


Input


Five lines containing a string on each.


C

C#

Java

Python

Javascript


Output


A single line containing all the strings separated by a comma and a space.


C, C#, Java, Python, Javascript


6. Three Lines Apart

by CodeChum Admin


Do you like reading books? If you do, then you must have encountered texts that have quite a wide space with dots in between them, just like pausing or thinking before proceeding the narration. Let's try doing that here in Python, shall we?


Input


Two lines containing a string on each.


some string

another string


Output


The first line contains the first inputted string.

The next three lines contains a dot symbol on each.

The last line contains the second inputted string.


some string

.

.

.

another string


5. Power Trio

by CodeChum Admin

Multiplying two numbers is a piece of cake, but how about multiplying three of them, either being a negative of positive number? With programming and proper code, these tasks are easy to handle.

You're a programmer, right? Then code this one for me!


Input

A line containing three numbers (positive or negative, may have decimal places) separated by a space.


1.6·-2·-1

Output

A line containing a decimal/float with one decimal place.


3.2
LATEST TUTORIALS
APPROVED BY CLIENTS