This commit is contained in:
Minhaj Ahmed Moin 2020-02-19 22:26:05 +05:00 committed by GitHub
parent df80aaea34
commit 8952da6073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!")
```
</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!")
```
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>
<summary>Explain inheritance and how to use it in Python</summary><br><b>