Skip to content

Instantly share code, notes, and snippets.

@konstantinos2018
Created September 4, 2020 09:01
Show Gist options
  • Save konstantinos2018/0d8dbfa6e19646ff7f0833efbd0e973d to your computer and use it in GitHub Desktop.
Save konstantinos2018/0d8dbfa6e19646ff7f0833efbd0e973d to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"ID: 0\n",
"Name: kostas\n",
"\n",
"ID: 1\n",
"Name: giwta\n",
"\n",
"ID: 2\n",
"Name: giannis\n",
"\n",
"ID: 3\n",
"Name: hara\n",
"\n"
]
}
],
"source": [
"names = ['kostas', 'giwta', 'giannis', 'hara']\n",
"for i, item in enumerate(names):\n",
" print('ID: {0}\\nName: {1}\\n'.format(i, item))"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.1"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment