{"id":32,"date":"2025-12-21T15:40:12","date_gmt":"2025-12-21T12:40:12","guid":{"rendered":"https:\/\/fpytontemellerif.free.nf\/?page_id=32"},"modified":"2026-03-16T20:38:21","modified_gmt":"2026-03-16T17:38:21","slug":"kullanicidan-veri-alma","status":"publish","type":"page","link":"https:\/\/www.fpytontemellerif.com.tr\/?page_id=32","title":{"rendered":"KULLANICIDAN VER\u0130 ALMA"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Konuya Giri\u015f<\/h2>\n\n\n\n<p>Programlar\u0131n sadece \u00f6nceden belirlenmi\u015f verilerle \u00e7al\u0131\u015fmas\u0131 yeterli de\u011fildir. Ger\u00e7ek hayatta kullan\u0131lan programlar, kullan\u0131c\u0131dan bilgi alarak bu bilgilere g\u00f6re i\u015flem yapar. Python\u2019da kullan\u0131c\u0131dan veri alma i\u015flemi <code>input()<\/code> fonksiyonu ile ger\u00e7ekle\u015ftirilir. Bu konu, programlar\u0131n daha dinamik hale gelmesini sa\u011flar.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u00d6\u011frenme S\u00fcreci<\/h2>\n\n\n\n<p>Bu konuya ba\u015flan\u0131rken \u00f6ncelikle <code>input()<\/code> fonksiyonunun temel kullan\u0131m \u015fekli \u00f6\u011frenilmi\u015ftir. Yap\u0131lan ilk denemelerde kullan\u0131c\u0131dan al\u0131nan verilerin ekrana yazd\u0131r\u0131ld\u0131\u011f\u0131 g\u00f6r\u00fclm\u00fc\u015ft\u00fcr. Daha sonra, kullan\u0131c\u0131dan al\u0131nan verilerin her zaman <strong>metin (string)<\/strong> t\u00fcr\u00fcnde oldu\u011fu fark edilmi\u015ftir.<\/p>\n\n\n\n<p>\u0130lerleyen denemelerde, kullan\u0131c\u0131dan al\u0131nan verilerle matematiksel i\u015flem yap\u0131lmak istendi\u011finde hatalarla kar\u015f\u0131la\u015f\u0131lm\u0131\u015ft\u0131r. Bu durumun nedeni ara\u015ft\u0131r\u0131lm\u0131\u015f ve Python\u2019un veri t\u00fcrlerine kar\u015f\u0131 hassas oldu\u011fu anla\u015f\u0131lm\u0131\u015ft\u0131r. Bu s\u00fcre\u00e7te deneme\u2013yan\u0131lma y\u00f6ntemi kullan\u0131lm\u0131\u015ft\u0131r.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Kodlar<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1\ufe0f\u20e3 Kullan\u0131c\u0131dan Metin Alma<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>isim = input(\"Ad\u0131n\u0131z\u0131 giriniz: \")\nprint(\"Girilen isim:\", isim)\n<\/code><\/pre>\n\n\n\n<p>Bu \u00f6rnekte kullan\u0131c\u0131dan isim al\u0131nm\u0131\u015f ve ekrana yazd\u0131r\u0131lm\u0131\u015ft\u0131r.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2\ufe0f\u20e3 Kullan\u0131c\u0131dan Say\u0131 Alma (\u0130lk Deneme)<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>yas = input(\"Ya\u015f\u0131n\u0131z\u0131 giriniz: \")\nprint(yas + 5)\n<\/code><\/pre>\n\n\n\n<p>Bu kod \u00e7al\u0131\u015ft\u0131r\u0131ld\u0131\u011f\u0131nda hata olu\u015fmu\u015ftur.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">3\ufe0f\u20e3 Do\u011fru Kullan\u0131m (Sonradan \u00d6\u011frenilen)<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>yas = int(input(\"Ya\u015f\u0131n\u0131z\u0131 giriniz: \"))\nprint(yas + 5)\n<\/code><\/pre>\n\n\n\n<p>Bu kullan\u0131mda hata olu\u015fmam\u0131\u015ft\u0131r \u00e7\u00fcnk\u00fc veri t\u00fcr\u00fc d\u00f6n\u00fc\u015ft\u00fcr\u00fclm\u00fc\u015ft\u00fcr.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Kar\u015f\u0131la\u015f\u0131lan Hatalar<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u274c Hata 1: T\u00fcr Uyumsuzlu\u011fu<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sayi = input(\"Bir say\u0131 giriniz: \")\nprint(sayi * 2)\n<\/code><\/pre>\n\n\n\n<p>Bu kod matematiksel i\u015flem yapmaz, sadece metni tekrar eder.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u274c Hata 2: Say\u0131 Yerine Harf Girilmesi<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sayi = int(input(\"Bir say\u0131 giriniz: \"))\n<\/code><\/pre>\n\n\n\n<p>Kullan\u0131c\u0131 harf girerse program hata verir.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">SIK SORULAN SORULAR ve CEVAPLARI<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u2753 input() ne i\u015fe yarar?<\/h3>\n\n\n\n<p>Kullan\u0131c\u0131dan klavye arac\u0131l\u0131\u011f\u0131yla veri almaya yarar.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2753 input() ile al\u0131nan veri hangi t\u00fcrdedir?<\/h3>\n\n\n\n<p>Her zaman <strong>string (metin)<\/strong> t\u00fcr\u00fcndedir.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2753 Neden int() kullan\u0131yoruz?<\/h3>\n\n\n\n<p>Matematiksel i\u015flem yapabilmek i\u00e7in metni say\u0131ya \u00e7evirmek gerekir.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2753 Kullan\u0131c\u0131 yanl\u0131\u015f veri girerse ne olur?<\/h3>\n\n\n\n<p>Program hata verir. Bu nedenle ilerleyen konularda hata kontrol\u00fc yap\u0131lmas\u0131 gerekir.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2753 input() olmadan program \u00e7al\u0131\u015f\u0131r m\u0131?<\/h3>\n\n\n\n<p>\u00c7al\u0131\u015f\u0131r, ancak kullan\u0131c\u0131yla etkile\u015fim olmaz.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Sonu\u00e7<\/h2>\n\n\n\n<p>Bu konu sayesinde Python\u2019da kullan\u0131c\u0131dan veri alman\u0131n temel mant\u0131\u011f\u0131 \u00f6\u011frenilmi\u015ftir. Al\u0131nan verilerin t\u00fcr\u00fcne dikkat edilmesi gerekti\u011fi, aksi halde program\u0131n hata verece\u011fi anla\u015f\u0131lm\u0131\u015ft\u0131r. Kullan\u0131c\u0131dan veri alma konusu, ilerleyen konularda ko\u015ful yap\u0131lar\u0131 ve d\u00f6ng\u00fclerle birlikte daha etkili \u015fekilde kullan\u0131lacakt\u0131r.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/www.fpytontemellerif.com.tr\/?page_id=42\">Devam etmek \u0130\u00e7in t\u0131klay\u0131n<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Konuya Giri\u015f Programlar\u0131n sadece \u00f6nceden belirlenmi\u015f verilerle \u00e7al\u0131\u015fmas\u0131 yeterli de\u011fildir. Ger\u00e7ek hayatta kullan\u0131lan programlar, kullan\u0131c\u0131dan bilgi alarak bu bilgilere g\u00f6re i\u015flem yapar. Python\u2019da kullan\u0131c\u0131dan veri alma i\u015flemi input() fonksiyonu ile ger\u00e7ekle\u015ftirilir. Bu konu, programlar\u0131n daha dinamik hale gelmesini sa\u011flar. \u00d6\u011frenme<\/p>\n<p><a href=\"https:\/\/www.fpytontemellerif.com.tr\/?page_id=32\" class=\"awp-btn awp-btn-secondary awp-btn-bubble\">Continue Reading<span class=\"screen-reader-text\">KULLANICIDAN VER\u0130 ALMA<\/span><i class=\"fa fa-arrow-right\"><\/i><span class=\"bubble_effect\"><span class=\"circle top-left\"><\/span><span class=\"circle top-left\"><\/span><span class=\"circle top-left\"><\/span>\t<span class=\"button effect-button\"><\/span><span class=\"circle bottom-right\"><\/span>\t<span class=\"circle bottom-right\"><\/span><span class=\"circle bottom-right\"><\/span><\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-32","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.fpytontemellerif.com.tr\/index.php?rest_route=\/wp\/v2\/pages\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fpytontemellerif.com.tr\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.fpytontemellerif.com.tr\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.fpytontemellerif.com.tr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fpytontemellerif.com.tr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32"}],"version-history":[{"count":2,"href":"https:\/\/www.fpytontemellerif.com.tr\/index.php?rest_route=\/wp\/v2\/pages\/32\/revisions"}],"predecessor-version":[{"id":493,"href":"https:\/\/www.fpytontemellerif.com.tr\/index.php?rest_route=\/wp\/v2\/pages\/32\/revisions\/493"}],"wp:attachment":[{"href":"https:\/\/www.fpytontemellerif.com.tr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}