Skip to content

Instantly share code, notes, and snippets.

@NurettinSelim
Created June 16, 2021 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NurettinSelim/da7d96cd392e291cd0dab21977829e25 to your computer and use it in GitHub Desktop.
Save NurettinSelim/da7d96cd392e291cd0dab21977829e25 to your computer and use it in GitHub Desktop.
# Inspired from https://twitter.com/YTolun/status/1405056460648759299
last_day_index = int(input("Kaç günlük twit oluşturmak istersiniz? ")) + 1
day_index = 1
message_content = "Aşıyla ilgili şaka yapmak"
day_name= "Bugün"
while day_index < last_day_index:
if day_index == 2:
day_name = "Yarın"
elif day_index > 2:
day_name = f"Yarından {day_index-2} sonraki gün"
if day_index % 2:
message_content = message_content[:-6] + "yapanlarla ilgili şaka yapmak"
else:
message_content = message_content[:-6] + "yapmakla ilgili şaka yapmak"
print(f"{day_name}: {message_content}")
day_index += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment