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; | 
  
    
      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
    
  
  
    
  | ##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
    
  
  
    
  | 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
    
  
  
    
  | """ 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
    
  
  
    
  | 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
    
  
  
    
  | public delegate void CallBackTareaCompletada(string mensaje); | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| CalllingCallback callback = new CalllingCallback(); | |
| callback.Tarea("soy la tarea inicial"); | |
| callback.Call(); | |
| } | 
  
    
      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
    
  
  
    
  | class Program | |
| { | |
| public delegate int MyPrimerDelegado(int a, int b); | |
| static void Main(string[] args) | |
| { | |
| MyPrimerDelegado del = Operaciones.Suma; // referenciando al metodo suma de la clase operaciones | |
| int suma = del(6, 8); | |
| del = Operaciones.Resta;// referenciando al metodo resta de clase operaciones | |
| int resta = del(5, 2); | 
  
    
      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
    
  
  
    
  | const isYourFriendHappy = true; | |
| const willGoingHisHome = new Promise((resolve, reject) => { | |
| if(isYourFriendHappy) | |
| { | |
| const goodDay = { | |
| games: 'enjoy good food' | |
| } | 
NewerOlder