Skip to content

Commit 4919777

Browse files
author
Vimal A R
committed
underscores in numbers
1 parent d47881e commit 4919777

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎Day-001/01-strings.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,10 @@
3737
# Strings can be concatenated
3838
string_11 = string_10 + string_9
3939
print(string_11)
40+
41+
# Underscore in numbers
42+
# Something I didn't know for sure.
43+
# You can use underscores in large numbers similar
44+
# to using commas for readability
45+
my_age = 15_000_234_543
46+
print("I am {} years old now".format(my_age))

‎Day-093/occurrences-1.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"""
1515

1616
from pprint import pprint
17+
from textwrap import TextWrapper
1718

1819
word_dict = {}
1920

0 commit comments

Comments
 (0)