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 25c0440

Browse files
author
Amogh Singhal
authored
Update hundred_without_int.py
1 parent ad92564 commit 25c0440

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎hundred_without_int.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Print numbers 1 to 100 without using any numbers or integers
22

3+
# APPRAOCH
4+
# Use Boolean values
5+
36
ONE = str(int(True))
47
ZERO = str(int(False))
58
HUNDRED = int(ONE + ZERO + ZERO)

0 commit comments

Comments
(0)

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