Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

S - 3 ) ( TO Puan ) Asagrdaki fonksiyon yapisina defialt alke olarak TURKIYE yi ekleyin. def Ulke Fonksiyonu ( country ) :

S-3)(TO Puan ) Asagrdaki fonksiyon yapisina defialt alke olarak "TURKIYE "yi ekleyin.
def Ulke Fonksiyonu(country): print ("I am from "+ country)
S-4)(10 Puan) Aadaki Python kodu caltirildignda, Kullanc ad Admin ve ifresi 12345 olarak girilen Python kodun ikts ne olur?
kullaniciAdi = input("kullanc adinz giriniz: ") sifre = input("parolaniz giriniz: ")
if kullaniciAdi = "admin" and sifre ="123": print("Giri baarl") else:
print("kullanc ad veya ifre yanl")
S-5)(IOPuan ) Kodlarda kullanilan FOR ve WHILE ifadelerinin ne ise yaradigini belirtiniz, aralarinda fark olup olmadigini aciklayiniz.
S-6)(20 Puan ) Aada verilen problemin Python programn yaziniz.
S-7)(15 Puan) Aadaki Python kodunu ok dikkatli bir ekilde inceleyin ve tm szdizimsel hatalar giderdikten sonra alan kodu yeniden yazn. Kodda yaplan her dzeltmenin altnizin.
DEF yonetici():
x=("Lutfen bir sayi giriniz:")
if )=(x :
print"Pozitif bir sayi girdiniz"
else:
x=**-1
print"Girdiginiz sayi pozitiflestirildi:" x
yonetici()
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

Describe lean management and explain why its important.

Answered: 1 week ago