This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PIL.Image | |
# use two hashtags to get a square image | |
char = "##" | |
def display_image(image): | |
width, height = image.size | |
ascii_image = [] | |
for y in range(height): | |
line = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://stackoverflow.com/questions/74822223/for-loop-only-returns-the-last-value | |
for tweet in tweets: | |
for word in tweet: | |
if word.startswith("#"): | |
hashtag_list.append(word) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if 'rock paper scissor' in command: | |
rps.play() |