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 React, { Component } from 'react'; | |
class Toggler extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
do: 'Change default value' | |
}; | |
} |
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
# INSTRUCTIONS: - UP, RIGHT, DOWN, LEFT, ARROWS TO PLAY | |
# - 'SPACEBAR' TO PAUSE / RESUME | |
# - PRESS 'ESC' BUTTON WHILE THE IS CURSER MOVING TO QUIT. WILL NOT ESCAPE IF PAUSED. | |
# - HAVE FUN!! It's even more breaking down the code and understanding it all! :) | |
# | |
# UPDATE: Corrected my comments to reflect python syntax. No more "array". | |
import curses | |
from curses import KEY_RIGHT, KEY_LEFT, KEY_UP, KEY_DOWN, A_BOLD, A_UNDERLINE |
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
# Challenge Solved in Python - Mustafa Anas | |
def unite_unique(*args): | |
united_lists = [] | |
unique_list = [] | |
for i in args: | |
united_lists += i | |
for i in united_lists: |
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
# Challenge Solved in Python - Mustafa Anas | |
def sumAll(lst): | |
item1 = lst[0] | |
item2 = lst[-1] | |
summed = 0 | |
if item2 > item1: | |
final_list = list(range(item1, item2+1)) | |
for i in final_list: |