{ "cells": [ { "cell_type": "markdown", "metadata": { "id": "waZDna5nPCfT" }, "source": [ "\n", "(ch1)=\n", "# เขียนโค้ดแรกในภาษาไพธอน (Python) \n", "\n", "ในบทนี้เราจะศึกษา\n", "* การเขียนโค้ดอย่างง่ายในภาษาไพธอน\n", "* การใช้ข้อมูลหลากหลายชนิดในภาษาไพธอน และการเปลี่ยนชนิดของข้อมูล (Typecasting) เบื่องต้น\n", "* การใช้ตัวแปร (Variables) และเขียนนิพจน์ (Expressions) โดยใช้ตัวดำเนินการทางคณิตศาสตร์ (Arithmetic operators)\n", "* การใช้ฟังก์ชัน print() แสดงค่าตัวแปร (ค่านิพจน์) ออกหน้าแสดงผล\n", "\n", "\n", "Refs:\n", "* https://docs.python.org/3/tutorial/introduction.html#first-steps-towards-programming\n", "* https://docs.python.org/3/tutorial/errors.html\n", "* https://docs.python.org/3/tutorial/controlflow.html#defining-functions\n", "* https://docs.python.org/3/library/functions.html#print\n", "* https://www.edx.org/course/python-basics-for-data-science\n", "* https://realpython.com/python-operators-expressions/" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "