k
This commit is contained in:
parent
df80aaea34
commit
8952da6073
12
README.md
12
README.md
@ -3247,12 +3247,20 @@ if char == "a" or char == "y" or char == "o" or char == "e" or char =="u" or ch
|
|||||||
print("It's a vowel!")
|
print("It's a vowel!")
|
||||||
```
|
```
|
||||||
</summary><br><b>
|
</summary><br><b>
|
||||||
</b></details>
|
|
||||||
|
|
||||||
```
|
```
|
||||||
if lower(input("Insert a character: ")[0]) in "aieou":
|
if lower(input("Insert a character: ")[0]) in "aieou": # Takes care of multiple characters and small/Capital cases
|
||||||
print("It's a vowel!")
|
print("It's a vowel!")
|
||||||
```
|
```
|
||||||
|
OR
|
||||||
|
```
|
||||||
|
char = input("Insert a character: ") # For readablity
|
||||||
|
if lower(char[0]) in "aieou": # Takes care of multiple characters and separate cases
|
||||||
|
print("It's a vowel!")
|
||||||
|
```
|
||||||
|
|
||||||
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Explain inheritance and how to use it in Python</summary><br><b>
|
<summary>Explain inheritance and how to use it in Python</summary><br><b>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user