⭐🚀 TkyNET | Blacklist ve Profesyonel DDoS Korumalı TeamSpeak 3 Sunucuları 🚀⭐
Sponsor Görsel
Server ip : 95.173.173.2 || Ts3 : LCAPRO www.lcapro.net
Sponsor Görsel 2
SponsorSponsor

Python Haiku Oluşturucu

Konu

#1
Merhaba,
Haiku'nun ne olduğunu bu soruyla öğrendim. Mantığını kafada oluşturamamıştım, ufak bi arama yaptım şunu buldum. 
Kullanılan modüller: random


Kod:
from random import choice

words = [
    choice(["Enchanting", "Amazing", "Colourful", "Delightful", "Delicate"]),
    choice(["visions", "distance", "conscience", "process", "chaos"]),
    choice(["superstitious", "contrasting", "graceful", "inviting", "contradicting", "overwhelming"]),
    choice(["true", "dark", "cold", "warm", "great"]),
    choice(["scenery","season", "colours","lights","Spring","Winter","Summer","Autumn"]),
    choice(["undeniable", "beautiful", "irreplaceable", "unbelievable", "irrevocable"]),
    choice(["inspiration", "imagination", "wisdom", "thoughts"])
]

print(("-" * 30) + "\nHaiku Generator\n" + ("-" * 30))
print("{} {},\n{} {} {},\n{} {}.".format(*words))

Cevapla
#2
Teşekkürler
Linksta
Cevapla
#3
@T1xLnN Rica ederim.
Cevapla

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da