|
|
|
@ -263,7 +263,7 @@
|
|
|
|
|
"outputs": [],
|
|
|
|
|
"source": [
|
|
|
|
|
"import math\n",
|
|
|
|
|
"print('Number: {},{}'.format(1, 2)) #replaces [] inside the string by the arguments of format\n",
|
|
|
|
|
"print('Number: {},{}'.format(1, 2)) #replaces {} inside the string by the arguments of format\n",
|
|
|
|
|
"print('PI #{}#'.format(math.pi))\n",
|
|
|
|
|
"print('PI #{:5.2f}#'.format(math.pi)) # at least 5 characters with two decimals"
|
|
|
|
|
]
|
|
|
|
|