Python Online Compiler & Playground
HTML/CSS/JavaScript
HTML
CSS
Javascript
C++
C
PHP
Java
Python
Swift
C#
Ruby
Node.JS
Kotlin
jQuery
Go
R
TypeScript
Start Python Course
Register
var define
+9
Author: rose
Dark
Public
Save
PY
py
1
2
3
4
5
6
7
8
9
# created by rose
var = 'a'
if var in ('a', 'e', 'i', 'o', 'u'):
print(f"{var} is a vowel...")
else:
print(f"{var} is a consonant...")
OUTPUT