import getpass
age = getpass.getpass('Enter your age:')
print("Entered age is: " + age)
  
    
      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 class MyBinarySearchTree { | |
| private MyTreeNode root; | |
| private int size; | |
| public MyBinarySearchTree() { | |
| this.root = null; | |
| size = 0; | |
| } | 
  
    
      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 class MyBinarySearchTree { | |
| private MyTreeNode root; | |
| public MyBinarySearchTree() { | |
| this.root = null; | |
| } | |
| public void add(Integer data) throws Exception { | |
| this.root = add(root, data); | 
  
    
      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 class AVLTree { | |
| private MyTreeNode root; | |
| public AVLTree() { | |
| this.root = null; | |
| } | |
| public void add(Integer data) throws Exception { | |
| this.root = add(root, data); | 
  
    
      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 getpass | |
| age = getpass.getpass('Enter your age:') | |
| print("Entered age is: " + age) | 
  
    
      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
    
  
  
    
  | def foo(x, y): | |
| current = x + y | |
| while (current < 100): | |
| current = current + x + y | |
| print(current) | |
| print("loop finished") | |
| foo(10, 10) | 
  
    
      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
    
  
  
    
  | greets = ["hi", "hello", "bye"] | |
| print(greets[0].upper()) | |
| def cap_list(lst): | |
| pass # do this | |
| cap_list(greets) | 
  
    
      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 class SplayTree { | |
| private MyTreeNode root; | |
| public SplayTree() { | |
| this.root = null; | |
| } | |
| // convenience function for testing | |
| public Integer 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
    
  
  
    
  | def display(lst): | |
| for el in lst: | |
| print(el) | |
| # display(["Hi", "Hello", "Bye"]) | |
| def display2(lst): | |
| for i in range(0, len(lst)): |