5 Ocak 2021 Salı

100 Days of Code - Day 1

2021 yılı için hedeflerim arasında bir de dil öğrenmek var ve öğrenebileceğim en iyi dilin yazılım dili olduğunu düşündüğüm için Udemy'den 100 Days of Code - The Complete Python Pro Bootcamp for 2021 kursuna başladım bile.

Amaç 100 günde kursu tamamlamak ve zero to hero tarzı bir iş becermek.

Bunun için de günlük olarak öğrendiklerimden notları da buraya atacağım. 

İlk dersini tamamladım ancak not almadan tamamladığım için ilk güne dair yazabileceğim pek bir şey yok. 

öğrendiğim komutlar: print, input ve len oldu. Bir de variable belirlemeyi ve bunları kod içinde kullanmayı basitçe gördüm.

Ders bitiminde vermiş olduğu proje şöyle:

#1. Create a greeting for your program.

#2. Ask the user for the city that they grew up in.

#3. Ask the user for the name of a pet.

#4. Combine the name of their city and pet and show them their band name.

#5. Make sure the input cursor shows on a new line, see the example at:
# https://band-name-generator-end.appbrewery.repl.run/ 

Yazdığım kod şöyle:

print("Welcome to my band name generator!")
city = input("Which city did you grow up?\n")
pet = input("What is the name of your pet? \n")
print("your new band name is " + city + " " + pet) 

Sonuç böyle: 

Welcome to my band name generator!
Which city did you grow up?
Ankara
What is the name of your pet?
Sudo
your new band name is Ankara Sudo


Hiç yorum yok:

Yorum Gönder

John the Ripper ile Şifre Kırmak

  JOHN THE RIPPER ARACIYLA ŞİFRE KIRMAK  John The Ripper, açık kaynak ve ücretsiz bir şifre kırma aracı. Her ne kadar Unix için çıkmış ols...