Solid Right Angled Triangle - 2
Given an integer number
N as input. Write a program to print the double triangular pattern of N lines using an asterisk(*) character as shown below.
Note: There is a space after each asterisk * character.
Input
The first line of input will contain a positive integer.
Explanation
Given
N = 4, there should be 2 triangular patterns with 4 lines each. So, the output should be
*
* *
* * *
* * * *
*
* *
* * *
* * * *
Sample Input 1
4
Sample Output 1
*
* *
* * *
* * * *
*
* *
* * *
* * * *
Sample Input 2
5
Sample Output 2
*
* *
* * *
* * * *
* * * * *
*
* *
* * *
* * * *
* * * * *
Given an integer value
The first line of input is an integer
In the given example
N = 5. Therefore, the output should be
*
* *
* * *
* * * *
* * * * *
* * * * * *
* *
* *
* *
* *
*what is input("")
Write a Python program that reads numbers from the user. Your program should stop reading in numbers when the number 99 is entered. It should then print out the sum of the numbers entered – do not include the value 99 when calculating your sum
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
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