NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

1- Girilen kullanıcı ismine göre ekrana “Merhaba Kullanıcı” yazdıran python kodunu yazınız.
Cevap: isim = input('İsminizi Girin : ')
print("Merhaba "+isim)

2- Bir dersin ortalaması girilen öğrencinin o dersten geçip geçmediğini gösteren python kodunu yazınız. 50’den büyükse geçti, değilse kaldı yazacak.
Cevap: ortalama = float(input('Ders Ortalamanızı Girin : '))

if(ortalama>=50):
print("Dersten Geçtiniz.")
else:
print("Dersten Kaldınız.")

3- 1 den 20’ye kadar olan çift sayıları alt alta yazdıran python kodunu yazınız.
Cevap: for i in range(1,21):
if i%2==0:
print(i)

4- Klavyeden girilen bir metnin harflerini alt alta yazdıran python kodunu yazınız.
Cevap: metin=input("Metni Giriniz: ")
sayac=0
while sayac < len(metin):
print(metin[sayac])
sayac += 1

5- Klavyeden girilen vize ve final notuna göre vizenin %40 ve finalin %60’ını alan ve sonucu ekranda gösteren python kodunu yazınız.
Cevap: vize = input("Vize Notunu Giriniz : ")
final = input("Final Notunu Giriniz : ")
ortalama= int(vize)*0.4 + int(final)*0.6
print("Ders Notunuz :{0} ".format(ortalama))

6- Klavyeden girilen sayının pozitif mi negatif mi yoksa sıfır mı olduğunu bulan python kodunu yazınız.
Cevap: #Öncelikle kullanıcıdan bir sayı isteniyor
sayi = input('Bir Sayı Giriniz : ')

#Sayının pozitif mi negatif mi sıfır mı olduğunu if ile kontrol ediyoruz.

if(int(sayi)>0):
print(sayi +" Sayısı Pozitif Sayıdır.")
//elif de olur
if(int(sayi)<0):
print(sayi +" Sayısı Negatif Sayıdır.")

if(int(sayi)==0):
print(sayi +" Sayısı Sıfırdır.")

7- Klavyeden girilen bir ifadeyi klavyeden girilen bir sayı kadar ekrana yazdıran python kodunu yazınız.
Cevap: metin = input("Bir isim girin:")
print((metin+"n")*10)

8- 1 den 100 e kadar olan sayılardan aynı anda 3 ve 5 e tam bölünen sayıları alt alta yazdıran python kodunu yazınız.
Cevap: for i in range(1,101):
if i%3==0 and i%5==0:
print(i)

9- Dört işlemli hesap makinesi.
Cevap: print("İki sayı giriniz: ")

sayi1 = int(input())
sayi2 = int(input())

print("n" +str(sayi1)+ " + " +str(sayi2)+ " = " +str(sayi1+sayi2))
print(str(sayi1)+ " - " +str(sayi2)+ " = " +str(sayi1-sayi2))
print(str(sayi1)+ " * " +str(sayi2)+ " = " +str(sayi1*sayi2))
print(str(sayi1)+ " / " +str(sayi2)+ " = " +str(sayi1/sayi2))
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.