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
PaAu
0
Author: JaScript
Dark
Public
Save
PY
py
1
2
3
4
5
6
7
8
9
10
import
re
password =
input
()
#your code goes here
pa = r
"[A-Z0-9]+"
ou = re.match
(
pa
,
password
)
if
ou
:
print
(
"Password created"
)
else
:
print
(
"Wrong format"
)
Enter to Rename, Shift+Enter to Preview
OUTPUT