13 lines
		
	
	
		
			133 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			133 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
 | |
| 
 | |
| class foo:
 | |
|     def __init__(self, x: int):
 | |
|         self.x = int(x)
 | |
|         self.foo = "bar"
 | |
| 
 | |
| f = foo(42)
 | |
| print(f.x)
 | |
| print(f.foo)
 | |
| 
 | |
| 
 |