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
Начать курс Python
Регистрация
😁😁😁👍 Password Validation ( Code Coach Level Hard )
+3
Автор: Kareem😶🌫️Aikka 🧑💻
Тёмный
Публичный
Сохранить
PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import
string
pw =
input
()
nums =
''
p =
''
for
x
in
pw
:
if
x
in
string.digits
:
nums = nums + x
elif
x
in
string.punctuation
:
p += x
Enter to Rename, Shift+Enter to Preview
OUTPUT