{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "abcd\n" ] } ], "source": [ "# ---------------------------------------------------------------\n", "# python best courses https://courses.tanpham.org/\n", "# ---------------------------------------------------------------\n", "# Convert a list of characters into a string\n", "# Input ['a', 'b', 'c', 'd']\n", "# Output abcd\n", "\n", "s = ['a', 'b', 'c', 'd']\n", "str1 = ''.join(s)\n", "print(str1)" ] } ], "metadata": { "kernelspec": { "display_name": "Python 2", "language": "python", "name": "python2" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", "version": "2.7.13" } }, "nbformat": 4, "nbformat_minor": 2 }