{"id":3239,"date":"2025-09-22T23:19:45","date_gmt":"2025-09-22T23:19:45","guid":{"rendered":"https:\/\/muhammadsoliman.com\/?p=3239"},"modified":"2025-09-22T23:23:21","modified_gmt":"2025-09-22T23:23:21","slug":"introduction-to-python-1","status":"publish","type":"post","link":"https:\/\/muhammadsoliman.com\/index.php\/2025\/09\/22\/introduction-to-python-1\/","title":{"rendered":"Introduction  to python 1"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">\ud83c\udfaf Goal of This Lesson<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You&#8217;re learning <strong>how to instruct a computer<\/strong> to do something \u2014 in this case, a simple math operation:<br><strong>Add 5 and <\/strong>3<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To do that, you&#8217;re learning to use a <strong>programming language<\/strong> called <strong>Python<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\udde0 Key Concept: Programming Language<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Just like humans speak English or Spanish to communicate, we use <strong>Python<\/strong> to talk to computers.<br>We give it commands (instructions), and the computer does what we say.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 Your First Instruction: <code>print(5 + 3)<\/code><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s break it down:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(5 + 3)\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>print(...)<\/code> \u2192 This tells the computer to <strong>show something on the screen<\/strong>.<\/li>\n\n\n\n<li><code>5 + <\/code>3 \u2192 This tells the computer to <strong>add 23 and 7<\/strong>.<\/li>\n\n\n\n<li>So <code>print(5 + 3)<\/code> means:<br><strong>\u201cAdd 23 and 7, and show the result.\u201d<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">When you run that line, the computer will display:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>8\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\uddea Try It Yourself<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Open your Python environment (Jupyter, code editor, or online platform) and type:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(5 + 3)\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then click <strong>Run Code<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udca1 What You Just Did<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You wrote your <strong>first line of Python code<\/strong><\/li>\n\n\n\n<li>You gave the computer an <strong>instruction<\/strong><\/li>\n\n\n\n<li>The computer followed your command and gave you the result<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud83c\udfaf Goal of This Lesson You&#8217;re learning how to instruct a computer to do something \u2014&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[25,26],"tags":[],"class_list":["post-3239","post","type-post","status-publish","format-standard","hentry","category-data-engineering","category-paython"],"taxonomy_info":{"category":[{"value":25,"label":"Data Engineering"},{"value":26,"label":"Python"}]},"featured_image_src_large":false,"author_info":{"display_name":"Muhammad Soliman","author_link":"https:\/\/muhammadsoliman.com\/author\/muhmmad-soliman\/"},"comment_info":0,"category_info":[{"term_id":25,"name":"Data Engineering","slug":"data-engineering","term_group":0,"term_taxonomy_id":25,"taxonomy":"category","description":"","parent":0,"count":1,"filter":"raw","cat_ID":25,"category_count":1,"category_description":"","cat_name":"Data Engineering","category_nicename":"data-engineering","category_parent":0},{"term_id":26,"name":"Python","slug":"paython","term_group":0,"term_taxonomy_id":26,"taxonomy":"category","description":"","parent":0,"count":1,"filter":"raw","cat_ID":26,"category_count":1,"category_description":"","cat_name":"Python","category_nicename":"paython","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/muhammadsoliman.com\/index.php\/wp-json\/wp\/v2\/posts\/3239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/muhammadsoliman.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/muhammadsoliman.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/muhammadsoliman.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/muhammadsoliman.com\/index.php\/wp-json\/wp\/v2\/comments?post=3239"}],"version-history":[{"count":0,"href":"https:\/\/muhammadsoliman.com\/index.php\/wp-json\/wp\/v2\/posts\/3239\/revisions"}],"wp:attachment":[{"href":"https:\/\/muhammadsoliman.com\/index.php\/wp-json\/wp\/v2\/media?parent=3239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/muhammadsoliman.com\/index.php\/wp-json\/wp\/v2\/categories?post=3239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/muhammadsoliman.com\/index.php\/wp-json\/wp\/v2\/tags?post=3239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}