Skip to content

Instantly share code, notes, and snippets.

View Ryoliveira's full-sized avatar
🎯
Focusing

Ryan Ryoliveira

🎯
Focusing
View GitHub Profile
@Ryoliveira
Ryoliveira / areSimilar
Last active May 20, 2018 06:18
Codefight.com Exercise #16
def areSimilar(a, b):
if a == b:
return True
for i in range(len(a)):
if a[i] in b:
if a[i] != b[i]:
j = b.index(a[i])
b[i], b[j] = b[j], b[i]
if a == b:
return True
from pytube import YouTube
from PyQt5 import QtWidgets
from PyQt5 import QtGui
from PyQt5 import QtCore
import os
import sys
class MainWindow(QtWidgets.QWidget):
def __init__(self):
@Ryoliveira
Ryoliveira / hangman.py
Created December 12, 2017 04:41
Simple Hang-Man Game for practice
import random
def welcome():
print("Welcome to HangMan!\n"
"You will have to guess my secret word!\n"
"If you fail 5 attempts, you will be hung!\n")
def secretWord():