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 | |
import sys | |
import os | |
#this is a comment | |
name = input("Enter name: ") | |
print("hello " + name +"!") |
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 | |
import sys | |
import os | |
def numbers(x): | |
for i in range(x): | |
if i % 2 == 0: | |
yield i | |
listNums = list(numbers(11)) | |
print(listNums[1:]) |
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 os | |
import sys | |
import random | |
import time | |
class Dice: | |
def __init__(self, sides): | |
self.sides = sides | |
def rollDice(self): |
petulapascall@gmail.com • (310) 503-1613 • seepetulacode.github.io
linkedin.com/in/petulapascall • github.com/seepetulacode
HTML/CSS, Python, Javascript, Node.js, EJS Tools: Git/Git Hub, Firebase, API
OlderNewer