File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff 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+ '''
147152input = 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' ])
151154print (str (output))
152155```
153156----------------
You can’t perform that action at this time.
0 commit comments