Dataset Viewer
Auto-converted to Parquet Duplicate
Input
dict
Output
dict
Instructions
dict
{ "0": "# a list containing strings and numbers\n\n# an empty list", "1": "# access the first element\n\n# access the third element", "2": "# access item at index 0\n\n# access item at index 2", "3": "# items from index 2 to index 4\n\n# items from index 5 to end\n\n# items beginning to end", "4": "# adding e...
{ "0": "student = ['Jack', 32, 'Computer Science']\nprint(student)\nempty_list = []\nprint(empty_list)", "1": "languages = ['Python', 'Swift', 'C++']\nprint(languages[0]) # Python\nprint(languages[2]) # C++", "2": "languages = ['Python', 'Swift', 'C++']\nprint(languages[-1]) # C++\nprint(languages[-3]) # ...
{ "0": "[INST] Instruction: # a list containing strings and numbers\n\n# an empty list [/INST] Output: student = ['Jack', 32, 'Computer Science']\nprint(student)\nempty_list = []\nprint(empty_list)", "1": "[INST] Instruction: # access the first element\n\n# access the third element [/INST] Output: languages = ['Pyt...

No dataset card yet

Downloads last month
3