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

Masking - 2

Write a program that reads a single line of input and prints the first two and last two characters of the given input and prints the asterisk character (*) in place of the remaining characters.

Explanation

For example, if the given string is 

message, then the first two and last two characters are me, ge. Now replacing all the remaining characters with * will give the output me***ge.

Sample Input 1
message
Sample Output 1
me***ge
Sample Input 2
12345
Sample Output 2
12*45

Shaded Diamond


This Program name is Shaded Diamond. Write a Python program to Shaded Diamond



The below link contains Shaded Diamond question, explanation and test cases



https://drive.google.com/file/d/19tuGOTP2lO8EK2sIw1lela2W6qdK0lwY/view?usp=sharing



We need exact output when the code was run

Number Diamond

This Program name is Number Diamond. Write a Python program to Number Diamond


The below link contains Sum of Even numbers question, explanation and test cases


https://drive.google.com/file/d/1zwyt_70X9gnXDtzKcW8GEDy9Mlin459f/view?usp=sharing


We need exact output when the code was run

Half Pyramid - 4


This Program name is Half Pyramid - 4 Write a Python program to Half Pyramid - 4


The below link contains Half Pyramid - 4 question, explanation and test cases


https://drive.google.com/file/d/1XUDbl1HqlrQ-ORm60rT22WK8MDmKxrPz/view?usp=sharing


We need exact output when the code was run

Half Pyramid - 3


This Program name is Half Pyramid - 3. Write a Python program to Half Pyramid - 3


The below link contains Half Pyramid - 3 question, explanation and test cases


https://drive.google.com/file/d/13c3-3LSzTDuA0PqNWXiMAZ1LoT-FBd_Q/view?usp=sharing


We need exact output when the code was run

Indivisible Numbers


This Program name is Indivisible Numbers. Write a Python program to Indivisible Numbers


The below link contains Indivisible Numbers question, explanation and test cases


https://drive.google.com/file/d/1f7eIquKcLG9PWczki8tG3PWLRrqX3HR1/view?usp=sharing


We need exact output when the code was run

Pythagoras Triplets


This Program name is Pythagoras Triplets. Write a Python program to Pythagoras Triplets


The below link contains Pythagoras Triplets question, explanation and test cases


https://drive.google.com/file/d/1pNIZ9mWA1pDZLf_KvKM8hDyZpHGcppyV/view?usp=sharing


We need exact output when the code was run

Write a program that determines whether you can run for president. To run for president the constitution states: No Person except a natural born Citizen, or a Citizen of the South Africa(SA), at the time of the Adoption of this Constitution, shall be eligible to the Office of President; neither shall any Person be eligible to that Office who shall not have attained to the Age of thirty five Years, and been fourteen Years a Resident within the South Africa. Ask three questions of the user and use the guess and check pattern to determine if they are eligible to run for President. 


given a list of integers , write a program to print the count of all possible unique combinations of numbers whose sum is equal to k.


Write a Python program that reads in an integer and then displays the digits in that integer in reverse order


LATEST TUTORIALS
APPROVED BY CLIENTS