0Pricing
NLP Academy · Ders

Python'da İlk Metin Programınız

Bir dizeyi okuyup kelimelerini sayma

Python'da İlk Metin Programınız, CoddyKit'te ücretsiz bir NLP Academy dersidir. Bu, 4 dersinin 4. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, NLP Academy öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. NLP Academy kursu toplamda 4 dersten oluşur.

Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.

Time to Write Code

Enough theory, let us write real Python. Your first NLP program will read a sentence and count its words. 🐍

Text Lives in Strings

In Python, a piece of text is a string, written inside quotes. It is the basic container for every word you process.

text = "NLP turns words into meaning"

Print to See It

Use print to show a value on screen. It is the simplest way to check that your text loaded correctly.

text = "NLP turns words into meaning"
print(text)

Splitting Into Words

The split method breaks a string at the spaces, handing you back a clean list of individual words.

words = text.split()
print(words)

A List of Tokens

That result is a list, your very first set of tokens. Each item is one word, ready to be counted or examined.

Counting With len

Wrap the list in len to count its items. This single function tells you how many words the sentence holds.

count = len(words)
print(count)

Putting It Together

A few lines do real NLP: store text, split it, and count the words. You just built a tiny word counter.

text = "NLP turns words into meaning"
words = text.split()
print(len(words))

Try Your Own Sentence

Swap in any sentence you like and run it again. The same three lines work on a tweet, a review, or a poem.

Words vs Characters

Call len on the string itself, not the list, and you count characters instead, spaces included.

print(len(text))

Why This Matters

Counting words feels small, but it is the foundation. Every advanced model still begins by splitting text into pieces.

You Did It

You wrote and understood a working NLP program. From here you only add steps, never start from scratch again. 🎉

Quick Check

You have a string in words after calling split. How do you count the words?

Recap

You stored text in a string, split it into a list, and counted with len: your first real NLP program in Python. 🏆

Sıkça Sorulan Sorular

“Python'da İlk Metin Programınız” dersi ücretsiz mi?

Evet — “Python'da İlk Metin Programınız” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve NLP Academy kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. NLP Academy kursu toplamda 4 dersten oluşur.

“Python'da İlk Metin Programınız” dersinde ne öğreneceğim?

Bir dizeyi okuyup kelimelerini sayma NLP Academy ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.

NLP Academy öğrenmeye başlamak için deneyim gerekli mi?

Önceden deneyim gerekmez. CoddyKit'te NLP Academy, başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 4. dersidir.

“Python'da İlk Metin Programınız” dersi ne kadar sürer?

Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.

Bu NLP Academy dersinde kod yazıp çalıştırabilir miyim?

Evet. Her NLP Academy dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.

Bu kursun tüm dersleri

  1. Kelimelerden Anlama: Doğal Dil İşleme Fikri
  2. Her Gün Kullandığınız Doğal Dil İşleme
  3. Doğal Dil İşleme Hattına Genel Bakış
  4. Python'da İlk Metin Programınız
← NLP Academy Sayfasına Dön