Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f761cb4

Browse files
Create TrueValue.py
1 parent 0e88fb6 commit f761cb4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

‎KissFlow/TrueValue.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""
2+
Output:
3+
One value here
4+
5+
"""
6+
d = {True: "True value here", None: "None value here"}
7+
8+
d[1] "One value here"
9+
10+
d[2] "Two value here"
11+
12+
d[None]= "None value here again"
13+
14+
print(d[True])

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /