8000 Solution for task: For Twins: 1. Types. · ZaytsevNS/python_codewars@cb91e8e · GitHub
[go: up one dir, main page]

Skip to content

Commit cb91e8e

Browse files
committed
Solution for task: For Twins: 1. Types.
1 parent 14ba1f3 commit cb91e8e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

8KYU/type_validation.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Solution for task: https://www.codewars.com/kata/59c1302ecb7fb48757000013/
2+
3+
4+
def type_validation(variable, _type) -> bool:
5+
return _type in str(type(variable))

0 commit comments

Comments
 (0)
0