Python Pattern Programs | How To Print Stars in Hollow Equilateral Triangle Shape

preview_player
Показать описание
In This Video You will learn how to Make following Pattern...
*
* *
* *
*******
Рекомендации по теме
Комментарии
Автор

First Before Second Letter
You are given three inputs: a string, one letter, and a second letter.

Check if every instance of the first letter occurs before every instance of the second letter.

Constraints:

All strings will be in lower case

All strings will contain the first and second letters at least once

Input Format

Three string value of string, first & second
Output Format

Print 'True' if the first letter occurs before every instance of the second letter, otherwise print 'False'
Sample Input 1

"a rabbit jumps joyfully", "a", "j"
Sample Output 1

True

# Every instance of "a" occurs before every instance of "j".

ksakina
visit shbcf.ru