Skip to content

Commit 4460389

Browse files
authored
Update Day_11.md
1 parent 009e88c commit 4460389

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

Status/Day_11.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -133,21 +133,24 @@ else:
133133
print "No"
134134
```
135135
----------------
136-
**My Solution: Python 3**
136+
**Solution: Python 3**
137137
```python
138-
s = input()
139-
if s.lower() == 'yes': # lower function returns all lowercase letters in the string
140-
print('Yes')
141-
else:
138+
'''
139+
Solution by: Seawolf159
140+
'''
141+
text = input("Please type something. --> ")
142+
if text == "yes" or text == "YES" or text == "Yes":
143+
print("Yes")
144+
else:
142145
print("No")
143146
```
144147
----------------
145-
**Solution by AasaiAlangaram: Python 3**
146148
```python
149+
'''
150+
Solution by: AasaiAlangaram
151+
'''
147152
input = input('Enter string:')
148-
149-
output = ''.join(['Yes' if input == 'yes' or input =='YES' or input =='Yes' or input =='YeS' else 'No' ])
150-
153+
output = ''.join(['Yes' if input == 'yes' or input =='YES' or input =='Yes' else 'No' ])
151154
print(str(output))
152155
```
153156
----------------

0 commit comments

Comments
 (0)