This file contains hidden or 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
| x = [ | |
| "shoat", | |
| "tubal", | |
| "eclat", | |
| "olam", | |
| "stat", | |
| "gnar", | |
| "babai", | |
| "scoad", | |
| "scrap" |
This file contains hidden or 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
| x = [ | |
| "shoat", | |
| "tubal", | |
| "eclat", | |
| "olam", | |
| "stat", | |
| "gnar", | |
| "babai", | |
| "scoad", | |
| "scrap" |
This file contains hidden or 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
| """ muteable object """ | |
| l = [1 , 26, 9] | |
| l[2] = 8 | |
| print(l) | |
| #output | |
| #[1, 26, 8] |
This file contains hidden or 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
| l = [1 , 26, 9] | |
| iterator = iter(l); | |
| print(iterator.__next__()) | |
| #1 |
This file contains hidden or 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
| ##s = sorted(x, key = lambda x:x[-2:]) | |
| ##print(s) | |
| x = [ | |
| "shoat", | |
| "tubal", | |
| "eclat", | |
| "olam", | |
| "stat", |
This file contains hidden or 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
| ## common functions | |
| def add(i,j): | |
| return i + j | |
| a = add(5,4); | |
| print(a) | |
| ##lambda expressions | |
| a = lambda x , y : x + y |
This file contains hidden or 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, { useState, useEffect } from 'react'; | |
| import data from './movies/movies_batch_0.json'; | |
| class Trie { | |
| constructor() { | |
| this.root = {}; | |
| } | |
| insert(word) { | |
| let node = this.root; |
OlderNewer