File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
notebooks/beginner/exercises Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 55 "metadata" : {},
66 "source" : [
77 " # 1. `if-elif-else`\n " ,
8- " Fill `'TODO'` statements such that prints make sense."
8+ " Fill missing pieces (`____`) of the following code such that prints make sense."
99 ]
1010 },
1111 {
2525 "metadata" : {},
2626 "outputs" : [],
2727 "source" : [
28- " # Modify 'TODO's\n " ,
29- " \n " ,
30- " if 'TODO':\n " ,
28+ " if ____:\n " ,
3129 " print('Name \" {}\" is more than 20 chars long'.format(name))\n " ,
3230 " length_description = 'long'\n " ,
33- " elif 'TODO' :\n " ,
31+ " elif ____ :\n " ,
3432 " print('Name \" {}\" is more than 15 chars long'.format(name))\n " ,
3533 " length_description = 'semi long'\n " ,
36- " elif 'TODO' :\n " ,
34+ " elif ____ :\n " ,
3735 " print('Name \" {}\" is more than 10 chars long'.format(name))\n " ,
3836 " length_description = 'semi long'\n " ,
39- " elif 'TODO' :\n " ,
40- " print('Name \" {}\" is more than 8, 9 or 10 chars long'.format(name))\n " ,
37+ " elif ____ :\n " ,
38+ " print('Name \" {}\" is 8, 9 or 10 chars long'.format(name))\n " ,
4139 " length_description = 'semi short'\n " ,
4240 " else:\n " ,
4341 " print('Name \" {}\" is a short name'.format(name))\n " ,
You can’t perform that action at this time.
0 commit comments