Skip to content

Instantly share code, notes, and snippets.

View pranavdhawan's full-sized avatar
🐙
on psychedelics

Pranav Dhawan pranavdhawan

🐙
on psychedelics
View GitHub Profile
@pranavdhawan
pranavdhawan / PY0101EN-1-2-Strings.ipynb
Created September 21, 2019 11:45
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pranavdhawan
pranavdhawan / PY0101EN-1-1-Types.ipynb
Created September 21, 2019 11:46
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
List<String> names = [
'beer',
'turner',
'brown',
'fox',
'clarke'
];
const computerPlay = () => {
var x = ['Rock', 'Paper', 'Scissors'];
const c = x[Math.floor(Math.random() * x.length)];
return c;
}
const playRound = (playerSelection, computerSelection) => {
if (playerSelection === 'Rock') {
if (computerSelection === 'Paper') {
console.log('You Lose! Paper beats Rock lol');