İkinci kullanıcı etkileşimli Python kodum

William Crusader

Hectopat
Katılım
11 Kasım 2020
Mesajlar
5.371
Makaleler
1
Çözümler
14
Daha fazla  
Cinsiyet
Erkek
Meslek
Yok
Nasıl olmuş sizce?
Birinci: İlk etkileşimli Python kodum
İkinci:
Python:
print("AI: What's Your Name? ")
name = input("You: ")
print ("AI: Hmm... Then Where do you live?")
country = input("You: ")
print ("AI: Good. Last thing, What's Your Hobby?")
hobby = input("You: ")

print("")
print("")

print ("AI: Hello "+str(name)+",")
print ("AI: From "+str(country)+",")
print ("AI: That loves "+str(hobby)+".")

print("")
print("")

print ("AI: If we something about you,that means we can pass into an Exam, "+str(name)+".")
print ("")
Points = 0

print ("AI: What's 5+4?")
answer1 = int(input("You: "))
if answer1 == 9:
    print ("")
    print ("AI: True! Let's get into next Question of Exam.")
    print ("")
    Points = Points + 50
else:
    print ("")
    print ("AI: False. Let's get into next Question of Exam.")
    print ("")

print ("AI: What's 24 + 56?")
print ("")
answer2 = int(input("You: "))
if answer2 == 80:
    Points = Points + 50
    print ("")
    print ("AI: True! Exam is finished.")
    print ("")
else:
    print ("")
    print ("AI: False, Exam is finished.")
    print ("")

print ("AI: Final results are:")
print ("")
print ("Name = " +str(name)+".")
print ("")
print ("Country = " +str(country)+".")
print ("")
print ("Hobby = " +str(hobby)+".")
print ("")
print ("Points = " +str(Points)+".")
print ("")
@The Towande
 
Nasıl olmuş sizce?
Birinci: İlk etkileşimli Python kodum
İkinci:
Python:
print("AI: What's Your Name? ")
name = input("You: ")
print ("AI: Hmm... Then Where do you live?")
country = input("You: ")
print ("AI: Good. Last thing, What's Your Hobby?")
hobby = input("You: ")

print("")
print("")

print ("AI: Hello "+str(name)+",")
print ("AI: From "+str(country)+",")
print ("AI: That loves "+str(hobby)+".")

print("")
print("")

print ("AI: If we something about you,that means we can pass into an Exam, "+str(name)+".")
print ("")
Points = 0

print ("AI: What's 5+4?")
answer1 = int(input("You: "))
if answer1 == 9:
    print ("")
    print ("AI: True! Let's get into next Question of Exam.")
    print ("")
    Points = Points + 50
else:
    print ("")
    print ("AI: False. Let's get into next Question of Exam.")
    print ("")

print ("AI: What's 24 + 56?")
print ("")
answer2 = int(input("You: "))
if answer2 == 80:
    Points = Points + 50
    print ("")
    print ("AI: True! Exam is finished.")
    print ("")
else:
    print ("")
    print ("AI: False, Exam is finished.")
    print ("")

print ("AI: Final results are:")
print ("")
print ("Name = " +str(name)+".")
print ("")
print ("Country = " +str(country)+".")
print ("")
print ("Hobby = " +str(hobby)+".")
print ("")
print ("Points = " +str(Points)+".")
print ("")
@The Towande
Müsait olduğumda deneyeceğim. Şimdiden güzel gözüküyor :)
 
Nasıl olmuş sizce?
Birinci: İlk etkileşimli Python kodum
İkinci:
Python:
print("AI: What's Your Name? ")
name = input("You: ")
print ("AI: Hmm... Then Where do you live?")
country = input("You: ")
print ("AI: Good. Last thing, What's Your Hobby?")
hobby = input("You: ")

print("")
print("")

print ("AI: Hello "+str(name)+",")
print ("AI: From "+str(country)+",")
print ("AI: That loves "+str(hobby)+".")

print("")
print("")

print ("AI: If we something about you,that means we can pass into an Exam, "+str(name)+".")
print ("")
Points = 0

print ("AI: What's 5+4?")
answer1 = int(input("You: "))
if answer1 == 9:
 print ("")
 print ("AI: True! Let's get into next Question of Exam.")
 print ("")
 Points = Points + 50
else:
 print ("")
 print ("AI: False. Let's get into next Question of Exam.")
 print ("")

print ("AI: What's 24 + 56?")
print ("")
answer2 = int(input("You: "))
if answer2 == 80:
 Points = Points + 50
 print ("")
 print ("AI: True! Exam is finished.")
 print ("")
else:
 print ("")
 print ("AI: False, Exam is finished.")
 print ("")

print ("AI: Final results are:")
print ("")
print ("Name = " +str(name)+".")
print ("")
print ("Country = " +str(country)+".")
print ("")
print ("Hobby = " +str(hobby)+".")
print ("")
print ("Points = " +str(Points)+".")
print ("")
@The Towande

Guzel olmuş, ellerine sağlık.
 
Nasıl olmuş sizce?
Birinci: İlk etkileşimli Python kodum
İkinci:
Python:
print("AI: What's Your Name? ")
name = input("You: ")
print ("AI: Hmm... Then Where do you live?")
country = input("You: ")
print ("AI: Good. Last thing, What's Your Hobby?")
hobby = input("You: ")

print("")
print("")

print ("AI: Hello "+str(name)+",")
print ("AI: From "+str(country)+",")
print ("AI: That loves "+str(hobby)+".")

print("")
print("")

print ("AI: If we something about you,that means we can pass into an Exam, "+str(name)+".")
print ("")
Points = 0

print ("AI: What's 5+4?")
answer1 = int(input("You: "))
if answer1 == 9:
 print ("")
 print ("AI: True! Let's get into next Question of Exam.")
 print ("")
 Points = Points + 50.
else:
 print ("")
 print ("AI: False. Let's get into next Question of Exam.")
 print ("")

print ("AI: What's 24 + 56?")
print ("")
answer2 = int(input("You: "))
if answer2 == 80:
 Points = Points + 50.
 print ("")
 print ("AI: True! Exam is finished.")
 print ("")
else:
 print ("")
 print ("AI: False, Exam is finished.")
 print ("")

print ("AI: Final results are:")
print ("")
print ("Name = " +str(name)+".")
print ("")
print ("Country = " +str(country)+".")
print ("")
print ("Hobby = " +str(hobby)+".")
print ("")
print ("Points = " +str(Points)+".")
print ("")
@The Towande

Güzel iş!
 
Uyarı! Bu konu 5 yıl önce açıldı.
Muhtemelen daha fazla tartışma gerekli değildir ki bu durumda yeni bir konu başlatmayı öneririz. Eğer yine de cevabınızın gerekli olduğunu düşünüyorsanız buna rağmen cevap verebilirsiniz.

Technopat Haberler

Yeni konular

Yeni mesajlar

Geri
Yukarı