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
class BecaEstudiante: | |
beca= None | |
cont= 0 | |
@classmethod | |
def getBeca(cls,nombreBecado): | |
if cls.cont<5: | |
cls.cont+=1 | |
cls.beca= BecaEstudiante() |
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 random | |
guessesTaken = 0 | |
print("Hello what is your name?") | |
name = input() | |
number = random.randint(1,20) | |
print("Well",name,",I am thinking of a number between 1 and 20.") |
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 random | |
HANGMANPICS = [''' | |
+---+ | |
| | | |
| | |
| | |
| | |
| | |
=========''',''' |
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 pygame, sys | |
from pygame.locals import * | |
#Set up pygame | |
pygame.init() | |
#Set up the window | |
windowSurface = pygame.display.set_mode((500, 400), 0 , 32) | |
pygame.display.set_caption('Hello World') |
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
package recursion; | |
import java.io.BufferedWriter; | |
import java.io.IOException; | |
import java.io.OutputStreamWriter; | |
public class Recursion { | |
public static void pascalArray(int[][] matrix) { |
OlderNewer