Notes
![]() ![]() Notes - notes.io |
yas=list()
maas=list()
cinsiyet=list()
ks=int(input("kişi sayısını giriniz :"))
def menu():
print("listelemek için 1 n isim ile aramak icin 2 n en büyük maas icin 3 n en küçük maas için 4 n")
secim=int(input("seciminizi yapınız :"))
if (secim==1):
listele(ad,yas,maas,cinsiyet)
elif (secim==2):
adilearama(ad,yas,maas,cinsiyet)
elif (secim==3):
enbmaas(ad,yas,maas,cinsiyet)
elif (secim==4):
enkmaas(ad,yas,maas,cinsiyet)
else:
exit(0)
def listele(ad,yas,maas,cinsiyet):
for i in range(0,ks):
print("adı :",ad[i],"yaşı :",yas[i],"maası :",maas[i],"cisiyeti :",cinsiyet[i])
def adilearama(ad,yas,maas,cinsiyet):
aranacakad=input("aranacak adı giriniz :")
for i in range(0,ks):
if aranacakad==ad[i]:
print("adı :",ad[i],"yaşı :",yas[i],"maası :",maas[i],"cisiyeti :",cinsiyet[i])
def enbmaas(ad,yas,maas,cinsiyet):
enb=maas[0]
indis=0
for i in range(0,ks):
if enb<maas[i]:
enb=maas[i]
indis=0
print("adı :",ad[i],"yaşı :",yas[i],"maası :",maas[i],"cisiyeti :",cinsiyet[i])
def enkmaas(ad,yas,maas,cinsiyet):
enk=maas[0]
for i in range(0,ks):
if(enk>maas[i]):
enk=maas[i]
print("adı :",ad[i],"yaşı :",yas[i],"maası :",maas[i],"cisiyeti :",cinsiyet[i])
for i in range(0,ks):
ad.append(input("adı giriniz :"))
cinsiyet.append(input("cinsiyeti giriniz :"))
ms=int(input(" maası giriniz :"))
maas.append(ms)
ys=int(input("yası giriniz :"))
yas.append(ys)
menu()
girilen satıların toplamanı ve ortalamasını bulma
import random
toplam=0
for i in range(0,10):
a=int(random.randint(1,100))
toplam=int(toplam+a)
print("sayıların toplamları :",toplam)
print("sayıların ortalaması :",int(toplam/10))
sayı tahmin oyunu :
import random
indis=0
sayı=int(input("1 ile 100 arasında sayı giriniz :"))
randsayı=int(random.randint(1,100))
while sayı !=randsayı:
if randsayı<sayı:
sayı=int(input(" küçük giriniz"))
elif randsayı>sayı:
sayı=int(input("büyğk gitiniz :"))
indis+=1
print("sayıyı {} kerede buldunuz :".format(indis))
![]() |
Notes is a web-based application for online 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 14 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