{"id":736,"date":"2020-07-26T21:00:40","date_gmt":"2020-07-26T21:00:40","guid":{"rendered":"https:\/\/www.lzych.pl\/?p=736"},"modified":"2022-01-27T21:59:52","modified_gmt":"2022-01-27T20:59:52","slug":"python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion","status":"publish","type":"post","link":"https:\/\/www.lzych.pl\/en\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/","title":{"rendered":"Python &#8211; bezp\u0142atny kurs dla pocz\u0105tkuj\u0105cych #3, Pobieranie danych wej\u015bciowych i konwersja typ\u00f3w"},"content":{"rendered":"<div data-elementor-type=\"wp-post\" data-elementor-id=\"736\" class=\"elementor elementor-736\" data-elementor-settings=\"[]\">\n\t\t\t\t\t\t<div class=\"elementor-inner\">\n\t\t\t\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-14c309e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"14c309e\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-820e9bf\" data-id=\"820e9bf\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-740e0c0 elementor-widget elementor-widget-text-editor\" data-id=\"740e0c0\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p><span style=\"color: #7a7a7a;\"><span style=\"font-family: Roboto, sans-serif;\"><span style=\"font-size: medium;\">Hej! Dzisiaj nauczymy si\u0119 jak mo\u017cemy pobiera\u0107 dane od u\u017cytkownika w trakcie dzia\u0142ania programu oraz jak mo\u017cemy konwertowa\u0107 warto\u015bci zmiennych do innych typ\u00f3w, co oka\u017ce si\u0119 ca\u0142kiem przydatne.<\/span><\/span><\/span><\/p><p><span style=\"color: #7a7a7a;\"><span style=\"font-family: Roboto, sans-serif;\"><span style=\"font-size: medium;\">Dzi\u0119ki temu nasze programy stan\u0105 si\u0119 interaktywne! B\u0119dzie super i b\u0119dzie dosy\u0107 \u0142atwo \ud83d\ude09 Zaczynajmy!<\/span><\/span><\/span><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-4c819fb\" data-id=\"4c819fb\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-84d04c9 elementor-widget elementor-widget-html\" data-id=\"84d04c9\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<div style=\"width:100%;height:0;padding-bottom:56%;position:relative;\"><iframe loading=\"lazy\" src=\"https:\/\/giphy.com\/embed\/NaboQwhxK3gMU\" width=\"100%\" height=\"100%\" style=\"position:absolute\" frameborder=\"0\" class=\"giphy-embed\" allowfullscreen><\/iframe><\/div><p><a href=\"https:\/\/giphy.com\/gifs\/posts-karma-NaboQwhxK3gMU\">via GIPHY<\/a><\/p>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f7d719a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f7d719a\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4f30d0a\" data-id=\"4f30d0a\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-dd813ca elementor-widget elementor-widget-heading\" data-id=\"dd813ca\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Pobieranie danych wej\u015bciowych u\u017cytkownika z klawiatury<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ba49e8b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ba49e8b\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-985ffa4\" data-id=\"985ffa4\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c37fd09 elementor-widget elementor-widget-text-editor\" data-id=\"c37fd09\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p><span style=\"font-family: var e-global-typography-text-font-family, Sans-serif;\">Warto\u015bci naszych zmiennych mo\u017cemy ustawia\u0107 przed uruchomieniem naszego programu &#8211; tak jak na poprzedniej lekcji lub mo\u017cemy poprosi\u0107 U\u017cytkownika, aby je wpisa\u0142 w trakcie jego dzia\u0142ania. Aby to zrobi\u0107, nale\u017cy wpisa\u0107\u00a0<\/span><span style=\"font-family: var e-global-typography-text-font-family, Sans-serif;\"><strong>= input()<\/strong><\/span><span style=\"font-family: var e-global-typography-text-font-family, Sans-serif;\">\u00a0obok nazwy naszej zmiennej. W \u015brodku nawiasu mo\u017cemy doda\u0107 opis, kt\u00f3ry b\u0119dzie m\u00f3wi\u0142 o tym, czego oczekujemy od U\u017cytkownika, jednak jest on zupe\u0142nie opcjonalny.<\/span><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-3cfacc3\" data-id=\"3cfacc3\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9b4e202 elementor-widget elementor-widget-text-editor\" data-id=\"9b4e202\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\nwelcome_message = 'Hello'\n\n# here we ask a user for an input\n# whatever he writes will be saved\n# in variable 'user_name'\nuser_name = input('Your name: ')\n\n# here we just print the value\n# from the variables above\nprint(f'{welcome_message} my dear {user_name}!')\n# Result: Hello my dear John!\n<\/pre>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5743825 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5743825\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-9abca9c\" data-id=\"9abca9c\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-467b33b elementor-widget elementor-widget-text-editor\" data-id=\"467b33b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p><span style=\"color: #7a7a7a;\"><span style=\"font-family: Roboto, sans-serif;\"><span style=\"font-size: medium;\">Teraz wystarczy uruchomi\u0107 nasz program:<\/span><\/span><\/span><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-ec98624\" data-id=\"ec98624\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7cd06a5 elementor-widget elementor-widget-image\" data-id=\"7cd06a5\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t<img width=\"684\" height=\"250\" src=\"https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_0.png\" class=\"attachment-large size-large\" alt=\"\" loading=\"lazy\" srcset=\"https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_0.png 684w, https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_0-300x110.png 300w\" sizes=\"(max-width: 684px) 100vw, 684px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5dbac0b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5dbac0b\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-e23fe10\" data-id=\"e23fe10\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d7b38ed elementor-widget elementor-widget-text-editor\" data-id=\"d7b38ed\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p><span style=\"color: #7a7a7a;\"><span style=\"font-family: Roboto, sans-serif;\"><span style=\"font-size: medium;\">oraz wpisa\u0107 w terminalu wybran\u0105 warto\u015b\u0107. W przypadku zaprezentowanego na screenie programu nale\u017cy wpisa\u0107 dowolne imi\u0119 i klikn\u0105\u0107 'Enter&#8217;. Gotowe!<\/span><\/span><\/span><\/p><p><span style=\"color: #7a7a7a;\"><span style=\"font-family: Roboto, sans-serif;\"><span style=\"font-size: medium;\">Nasz program zareagowa\u0142 na to, co wpisali\u015bmy w trakcie jego dzia\u0142ania! \ud83d\ude42<\/span><\/span><\/span><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-5acf4fc\" data-id=\"5acf4fc\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-fb1a0f0 elementor-widget elementor-widget-image\" data-id=\"fb1a0f0\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t<img width=\"705\" height=\"308\" src=\"https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_1.png\" class=\"attachment-large size-large\" alt=\"\" loading=\"lazy\" srcset=\"https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_1.png 705w, https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_1-300x131.png 300w\" sizes=\"(max-width: 705px) 100vw, 705px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2436a91 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2436a91\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-126ed92\" data-id=\"126ed92\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9544868 elementor-widget elementor-widget-heading\" data-id=\"9544868\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Konwersja typ\u00f3w<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-cdc283b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"cdc283b\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-cb4850a\" data-id=\"cb4850a\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-256f6e4 elementor-widget elementor-widget-text-editor\" data-id=\"256f6e4\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p><span style=\"font-family: var e-global-typography-text-font-family, Sans-serif;\"><strong>Za ka\u017cdym razem pobieraj\u0105c warto\u015b\u0107 korzystaj\u0105c z input(), jest ona domy\u015blnie stringiem<\/strong><\/span><span style=\"font-family: var e-global-typography-text-font-family, Sans-serif;\">\u2013 czyli zapisywana w cudzys\u0142owie i traktowana jako zwyk\u0142y tekst &#8211; niewa\u017cne czy wpiszesz sam tekst, liczb\u0119 czy boolean&#8217;a.<\/span><\/p><p><span style=\"font-family: var e-global-typography-text-font-family, Sans-serif;\">Jest to ok, ale czasami chcemy pobra\u0107 dane liczbowe na przyk\u0142ad wzrost, wag\u0119 czy cokolwiek innego. Skoro nasza zmienna domy\u015blnie b\u0119dzie stringiem, to b\u0119dziemy mogli wykonywa\u0107 na niej operacje dla string\u00f3w, a nie dla liczb. Czyli nie wykonamy, \u017cadnych pot\u0119g, dziele\u0144 itd. Aby si\u0119 upewni\u0107, mo\u017cemy sprawdzi\u0107 ka\u017cd\u0105 zmienn\u0105 jakiego jest typu, aby to zrobi\u0107 piszemy type(), a w nawiasie powinna by\u0107 nazwa zmiennej.<\/span><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-fc8bee7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"fc8bee7\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-56685af\" data-id=\"56685af\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1bcf674 elementor-widget elementor-widget-text-editor\" data-id=\"1bcf674\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">year = 2020\nage = input('Your age: ')\n\nprint(year)\nprint(type(year))\n# result: class 'int'=\"\"\n\nprint(age)\nprint(type(age))\n# result: class 'str'=\"\"\n<\/pre>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-9103247\" data-id=\"9103247\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d13e402 elementor-widget elementor-widget-image\" data-id=\"d13e402\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t<img width=\"557\" height=\"197\" src=\"https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_2.png\" class=\"attachment-large size-large\" alt=\"\" loading=\"lazy\" srcset=\"https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_2.png 557w, https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_2-300x106.png 300w\" sizes=\"(max-width: 557px) 100vw, 557px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b7ff4ab elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b7ff4ab\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b32b35f\" data-id=\"b32b35f\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-754450d elementor-widget elementor-widget-text-editor\" data-id=\"754450d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p><span style=\"color: #7a7a7a;\"><span style=\"font-family: Roboto, sans-serif;\"><span style=\"font-size: medium;\">Mimo, \u017ce wpisa\u0142em 50, to moja faktyczna warto\u015b\u0107 w zmiennej to &#8217;50&#8217;. Teraz gdybym chcia\u0142 wykona\u0107 jakie\u015b dzia\u0142ania na liczbach, nie b\u0119dzie to mo\u017cliwe.<\/span><\/span><\/span><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-15ec3d4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"15ec3d4\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-45b3bfa\" data-id=\"45b3bfa\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d00b64b elementor-widget elementor-widget-text-editor\" data-id=\"d00b64b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\nage = input('Your age: ')\n\n# I just want to add 10\n# to any age I write\nprint(age + 10)\n<\/pre>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-2482c6e\" data-id=\"2482c6e\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-99657b7 elementor-widget elementor-widget-image\" data-id=\"99657b7\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t<img width=\"661\" height=\"210\" src=\"https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_3.png\" class=\"attachment-large size-large\" alt=\"\" loading=\"lazy\" srcset=\"https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_3.png 661w, https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_3-300x95.png 300w\" sizes=\"(max-width: 661px) 100vw, 661px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-48adc97 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"48adc97\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fada48e\" data-id=\"fada48e\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-758bdc0 elementor-widget elementor-widget-text-editor\" data-id=\"758bdc0\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p><span style=\"color: #7a7a7a;\"><span style=\"font-family: Roboto, sans-serif;\"><span style=\"font-size: medium;\">Czas to poprawi\u0107. Aby zamieni\u0107 stringa na integera, u\u017cywamy funkcji\u00a0<strong>int()<\/strong>\u00a0, za\u015b aby zamieni\u0107 integera na stringa u\u017cywamy funkcji\u00a0<strong>str()<\/strong>.<\/span><\/span><\/span><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-efde969 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"efde969\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-6664058\" data-id=\"6664058\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b1dcb2d elementor-widget elementor-widget-text-editor\" data-id=\"b1dcb2d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\n# we convert str to int\nage = int(input('Your age: '))\n\n# I just want to add 10\n# to any age I write\nprint(age + 10)\n<\/pre>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-80eeb61\" data-id=\"80eeb61\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-24d13ee elementor-widget elementor-widget-image\" data-id=\"24d13ee\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t<img width=\"564\" height=\"138\" src=\"https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_4.png\" class=\"attachment-large size-large\" alt=\"\" loading=\"lazy\" srcset=\"https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_4.png 564w, https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_4-300x73.png 300w\" sizes=\"(max-width: 564px) 100vw, 564px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5eb45de elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5eb45de\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3af582c\" data-id=\"3af582c\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7751892 elementor-widget elementor-widget-text-editor\" data-id=\"7751892\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p><span style=\"color: #7a7a7a;\"><span style=\"font-family: Roboto, sans-serif;\"><span style=\"font-size: medium;\">Mo\u017cesz doda\u0107 do siebie zmienne o takich samych typach, ale je\u017celi chcesz doda\u0107 do siebie r\u00f3\u017cne typy otrzymasz informacj\u0119 o b\u0142\u0119dzie. Zobacz jeszcze kilka przyk\u0142ad\u00f3w.<\/span><\/span><\/span><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c9606b8 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c9606b8\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-05d08aa\" data-id=\"05d08aa\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5ebc746 elementor-widget elementor-widget-text-editor\" data-id=\"5ebc746\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\n# note is a string, not an int\n# we only have actions available for strings\n# for example we can take the first\n# letter\/digit\nyear = '2020'\n\nprint(year[0])\n# result: 2\n\n# it works because we can add together\n# two strings but we can't add\n# different types\nprint(year + ' year!')\n# result: 2020 year!\n\n# we can convert it and add something\n# from now on this variable will be an int\nyear = int(year) + 123\n\nprint(year)\n# result: 2143\n<\/pre>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-253777d\" data-id=\"253777d\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-02abe9e elementor-widget elementor-widget-image\" data-id=\"02abe9e\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t<img width=\"570\" height=\"154\" src=\"https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_5.png\" class=\"attachment-large size-large\" alt=\"\" loading=\"lazy\" srcset=\"https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_5.png 570w, https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_5-300x81.png 300w\" sizes=\"(max-width: 570px) 100vw, 570px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9a0c7be elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9a0c7be\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e922469\" data-id=\"e922469\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-35250c8 elementor-widget elementor-widget-heading\" data-id=\"35250c8\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0106wiczenie<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b735cdb elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b735cdb\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-996c71b\" data-id=\"996c71b\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-72fb861 elementor-widget elementor-widget-text-editor\" data-id=\"72fb861\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p><span style=\"font-family: var e-global-typography-text-font-family, Sans-serif;\">Po\u0107wicz i wykonaj nast\u0119puj\u0105ce programy:<\/span><\/p><ul><li><span style=\"font-family: 'var e-global-typography-text-font-family', sans-serif;\">program kt\u00f3ry b\u0119dzie przelicza\u0142 stopnie Celsjusza na stopnie Kelvin&#8217;a. Czyli U\u017cytkownik wpisuje w terminalu liczb\u0119, na podstawie kt\u00f3rej obliczysz stopnie Kelvin&#8217;a i wynik wypisz korzystaj\u0105c z funkcji print(). Tutaj wz\u00f3r do zamiany: K = \u00b0C + 273.15,<\/span><\/li><li><span style=\"font-family: 'var e-global-typography-text-font-family', sans-serif;\">program kt\u00f3ry b\u0119dzie oblicza\u0142 dat\u0119 urodzenia osoby &#8211; pobierz wiek osoby, wykonaj niezb\u0119dne obliczenia i wypisz rok urodzenia korzystaj\u0105c z funkcji print().<\/span><\/li><\/ul><p><span style=\"font-family: var e-global-typography-text-font-family, Sans-serif;\">Je\u017celi b\u0119dziesz mie\u0107 problem z wykonaniem zadania napisz w komentarzu. Je\u017celi uda Ci si\u0119 je rozwi\u0105za\u0107, tak\u017ce pochwal si\u0119 w komentarzu rezultatem<\/span><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c827ff6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c827ff6\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0c134b0\" data-id=\"0c134b0\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-0ab68b2 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"0ab68b2\" data-element_type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c739eb7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c739eb7\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-072c7d1\" data-id=\"072c7d1\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-58c84bd elementor-widget elementor-widget-html\" data-id=\"58c84bd\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<div style=\"width:100%;height:0;padding-bottom:102%;position:relative;\"><iframe loading=\"lazy\" src=\"https:\/\/giphy.com\/embed\/pI5mBqfP6npHG\" width=\"100%\" height=\"100%\" style=\"position:absolute\" frameborder=\"0\" class=\"giphy-embed\" allowfullscreen><\/iframe><\/div><p><a href=\"https:\/\/giphy.com\/gifs\/boss-pI5mBqfP6npHG\">via GIPHY<\/a><\/p>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-728a576\" data-id=\"728a576\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-193790b elementor-widget elementor-widget-text-editor\" data-id=\"193790b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p><span style=\"color: #7a7a7a;\"><span style=\"font-family: Roboto, sans-serif;\"><span style=\"font-size: medium;\">To dopiero trzecia lekcja, a ju\u017c zaczynasz pisa\u0107 interaktywne programy! Super! \u015awietna robota \ud83d\ude42<\/span><\/span><\/span><\/p><p><span style=\"color: #7a7a7a;\"><span style=\"font-family: Roboto, sans-serif;\"><span style=\"font-size: medium;\">Nie zapomnij polubi\u0107\u00a0<\/span><\/span><\/span><a href=\"https:\/\/www.facebook.com\/lz.programming.courses\"><span style=\"color: #7a7a7a;\"><span style=\"font-family: Roboto, sans-serif;\"><span style=\"font-size: medium;\"><strong>stron\u0119 na facebooku<\/strong><\/span><\/span><\/span><\/a><span style=\"color: #7a7a7a;\"><span style=\"font-family: Roboto, sans-serif;\"><span style=\"font-size: medium;\">\u00a0i zapisa\u0107 si\u0119 do\u00a0<\/span><\/span><\/span><a href=\"https:\/\/www.lzych.pl\/en\/pl\/blog\/\"><span style=\"color: #7a7a7a;\"><span style=\"font-family: Roboto, sans-serif;\"><span style=\"font-size: medium;\"><strong>newsletter&#8217;a<\/strong><\/span><\/span><\/span><\/a><span style=\"color: #7a7a7a;\"><span style=\"font-family: Roboto, sans-serif;\"><span style=\"font-size: medium;\"><strong>\u00a0<\/strong><\/span><\/span><\/span><span style=\"color: #7a7a7a;\"><span style=\"font-family: Roboto, sans-serif;\"><span style=\"font-size: medium;\">aby dosta\u0107 informacj\u0119 o kolejnych \u015bwietnych lekcjach!<\/span><\/span><\/span><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-57b46b4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"57b46b4\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-10823fd\" data-id=\"10823fd\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3861d76 elementor-align-center elementor-widget elementor-widget-button\" data-id=\"3861d76\" data-element_type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t<a href=\"https:\/\/www.lzych.pl\/en\/python-tutorial-free-course-for-beginners-4-conditional-statements\/\" class=\"elementor-button-link elementor-button elementor-size-sm\" role=\"button\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t<span class=\"elementor-button-text\">Nast\u0119pna lekcja<\/span>\n\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Hej! Dzisiaj nauczymy si\u0119 jak mo\u017cemy pobiera\u0107 dane od u\u017cytkownika w trakcie dzia\u0142ania programu oraz jak mo\u017cemy konwertowa\u0107 warto\u015bci zmiennych do innych typ\u00f3w, co oka\u017ce si\u0119 ca\u0142kiem przydatne. Dzi\u0119ki temu nasze programy stan\u0105 si\u0119 interaktywne! B\u0119dzie super i b\u0119dzie dosy\u0107 \u0142atwo \ud83d\ude09 Zaczynajmy! via GIPHY Pobieranie danych wej\u015bciowych u\u017cytkownika z klawiatury Warto\u015bci naszych zmiennych mo\u017cemy [&hellip;]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[22],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.5.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python - bezp\u0142atny kurs dla pocz\u0105tkuj\u0105cych #3, Pobieranie danych wej\u015bciowych i konwersja typ\u00f3w - \u0141ukasz Zych<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.lzych.pl\/en\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python - bezp\u0142atny kurs dla pocz\u0105tkuj\u0105cych #3, Pobieranie danych wej\u015bciowych i konwersja typ\u00f3w - \u0141ukasz Zych\" \/>\n<meta property=\"og:description\" content=\"Hej! Dzisiaj nauczymy si\u0119 jak mo\u017cemy pobiera\u0107 dane od u\u017cytkownika w trakcie dzia\u0142ania programu oraz jak mo\u017cemy konwertowa\u0107 warto\u015bci zmiennych do innych typ\u00f3w, co oka\u017ce si\u0119 ca\u0142kiem przydatne. Dzi\u0119ki temu nasze programy stan\u0105 si\u0119 interaktywne! B\u0119dzie super i b\u0119dzie dosy\u0107 \u0142atwo \ud83d\ude09 Zaczynajmy! via GIPHY Pobieranie danych wej\u015bciowych u\u017cytkownika z klawiatury Warto\u015bci naszych zmiennych mo\u017cemy [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lzych.pl\/en\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0141ukasz Zych\" \/>\n<meta property=\"article:published_time\" content=\"2020-07-26T21:00:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-27T20:59:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_0.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"lukasz\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.lzych.pl\/#website\",\"url\":\"https:\/\/www.lzych.pl\/\",\"name\":\"\u0141ukasz Zych\",\"description\":\"Aplikacje webowe, natywne, strony internetowe, boty\",\"publisher\":{\"@id\":\"https:\/\/www.lzych.pl\/#\/schema\/person\/1d55d960423b466c5aa2246be5086c56\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.lzych.pl\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_0.png\",\"contentUrl\":\"https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_0.png\",\"width\":684,\"height\":250},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/#webpage\",\"url\":\"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/\",\"name\":\"Python - bezp\u0142atny kurs dla pocz\u0105tkuj\u0105cych #3, Pobieranie danych wej\u015bciowych i konwersja typ\u00f3w - \u0141ukasz Zych\",\"isPartOf\":{\"@id\":\"https:\/\/www.lzych.pl\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/#primaryimage\"},\"datePublished\":\"2020-07-26T21:00:40+00:00\",\"dateModified\":\"2022-01-27T20:59:52+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.lzych.pl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python &#8211; bezp\u0142atny kurs dla pocz\u0105tkuj\u0105cych #3, Pobieranie danych wej\u015bciowych i konwersja typ\u00f3w\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/#webpage\"},\"author\":{\"@id\":\"https:\/\/www.lzych.pl\/#\/schema\/person\/1d55d960423b466c5aa2246be5086c56\"},\"headline\":\"Python &#8211; bezp\u0142atny kurs dla pocz\u0105tkuj\u0105cych #3, Pobieranie danych wej\u015bciowych i konwersja typ\u00f3w\",\"datePublished\":\"2020-07-26T21:00:40+00:00\",\"dateModified\":\"2022-01-27T20:59:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/#webpage\"},\"wordCount\":518,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.lzych.pl\/#\/schema\/person\/1d55d960423b466c5aa2246be5086c56\"},\"image\":{\"@id\":\"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_0.png\",\"articleSection\":[\"Kurs Python'a dla pocz\u0105tkuj\u0105cych\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.lzych.pl\/#\/schema\/person\/1d55d960423b466c5aa2246be5086c56\",\"name\":\"lukasz\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.lzych.pl\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/56a3d931c6dc7b4ba8141eab2d044a56?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/56a3d931c6dc7b4ba8141eab2d044a56?s=96&d=retro&r=g\",\"caption\":\"lukasz\"},\"logo\":{\"@id\":\"https:\/\/www.lzych.pl\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python - bezp\u0142atny kurs dla pocz\u0105tkuj\u0105cych #3, Pobieranie danych wej\u015bciowych i konwersja typ\u00f3w - \u0141ukasz Zych","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.lzych.pl\/en\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/","og_locale":"en_US","og_type":"article","og_title":"Python - bezp\u0142atny kurs dla pocz\u0105tkuj\u0105cych #3, Pobieranie danych wej\u015bciowych i konwersja typ\u00f3w - \u0141ukasz Zych","og_description":"Hej! Dzisiaj nauczymy si\u0119 jak mo\u017cemy pobiera\u0107 dane od u\u017cytkownika w trakcie dzia\u0142ania programu oraz jak mo\u017cemy konwertowa\u0107 warto\u015bci zmiennych do innych typ\u00f3w, co oka\u017ce si\u0119 ca\u0142kiem przydatne. Dzi\u0119ki temu nasze programy stan\u0105 si\u0119 interaktywne! B\u0119dzie super i b\u0119dzie dosy\u0107 \u0142atwo \ud83d\ude09 Zaczynajmy! via GIPHY Pobieranie danych wej\u015bciowych u\u017cytkownika z klawiatury Warto\u015bci naszych zmiennych mo\u017cemy [&hellip;]","og_url":"https:\/\/www.lzych.pl\/en\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/","og_site_name":"\u0141ukasz Zych","article_published_time":"2020-07-26T21:00:40+00:00","article_modified_time":"2022-01-27T20:59:52+00:00","og_image":[{"url":"https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_0.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"lukasz","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.lzych.pl\/#website","url":"https:\/\/www.lzych.pl\/","name":"\u0141ukasz Zych","description":"Aplikacje webowe, natywne, strony internetowe, boty","publisher":{"@id":"https:\/\/www.lzych.pl\/#\/schema\/person\/1d55d960423b466c5aa2246be5086c56"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.lzych.pl\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/#primaryimage","inLanguage":"en-US","url":"https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_0.png","contentUrl":"https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_0.png","width":684,"height":250},{"@type":"WebPage","@id":"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/#webpage","url":"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/","name":"Python - bezp\u0142atny kurs dla pocz\u0105tkuj\u0105cych #3, Pobieranie danych wej\u015bciowych i konwersja typ\u00f3w - \u0141ukasz Zych","isPartOf":{"@id":"https:\/\/www.lzych.pl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/#primaryimage"},"datePublished":"2020-07-26T21:00:40+00:00","dateModified":"2022-01-27T20:59:52+00:00","breadcrumb":{"@id":"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.lzych.pl\/"},{"@type":"ListItem","position":2,"name":"Python &#8211; bezp\u0142atny kurs dla pocz\u0105tkuj\u0105cych #3, Pobieranie danych wej\u015bciowych i konwersja typ\u00f3w"}]},{"@type":"Article","@id":"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/#article","isPartOf":{"@id":"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/#webpage"},"author":{"@id":"https:\/\/www.lzych.pl\/#\/schema\/person\/1d55d960423b466c5aa2246be5086c56"},"headline":"Python &#8211; bezp\u0142atny kurs dla pocz\u0105tkuj\u0105cych #3, Pobieranie danych wej\u015bciowych i konwersja typ\u00f3w","datePublished":"2020-07-26T21:00:40+00:00","dateModified":"2022-01-27T20:59:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/#webpage"},"wordCount":518,"commentCount":0,"publisher":{"@id":"https:\/\/www.lzych.pl\/#\/schema\/person\/1d55d960423b466c5aa2246be5086c56"},"image":{"@id":"https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lzych.pl\/wp-content\/uploads\/2020\/07\/python_3_0.png","articleSection":["Kurs Python'a dla pocz\u0105tkuj\u0105cych"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.lzych.pl\/python-tutorial-free-course-for-beginners-3-receiving-input-and-type-conversion\/#respond"]}]},{"@type":["Person","Organization"],"@id":"https:\/\/www.lzych.pl\/#\/schema\/person\/1d55d960423b466c5aa2246be5086c56","name":"lukasz","image":{"@type":"ImageObject","@id":"https:\/\/www.lzych.pl\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/56a3d931c6dc7b4ba8141eab2d044a56?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/56a3d931c6dc7b4ba8141eab2d044a56?s=96&d=retro&r=g","caption":"lukasz"},"logo":{"@id":"https:\/\/www.lzych.pl\/#personlogo"}}]}},"_links":{"self":[{"href":"https:\/\/www.lzych.pl\/en\/wp-json\/wp\/v2\/posts\/736"}],"collection":[{"href":"https:\/\/www.lzych.pl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lzych.pl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lzych.pl\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lzych.pl\/en\/wp-json\/wp\/v2\/comments?post=736"}],"version-history":[{"count":110,"href":"https:\/\/www.lzych.pl\/en\/wp-json\/wp\/v2\/posts\/736\/revisions"}],"predecessor-version":[{"id":1591,"href":"https:\/\/www.lzych.pl\/en\/wp-json\/wp\/v2\/posts\/736\/revisions\/1591"}],"wp:attachment":[{"href":"https:\/\/www.lzych.pl\/en\/wp-json\/wp\/v2\/media?parent=736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lzych.pl\/en\/wp-json\/wp\/v2\/categories?post=736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lzych.pl\/en\/wp-json\/wp\/v2\/tags?post=736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}