mirror of
				https://github.com/pocketpy/pocketpy
				synced 2025-11-04 02:30:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			234 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			234 B
		
	
	
	
		
			Python
		
	
	
	
	
	
a = [
 | 
						|
    1,2,3,
 | 
						|
    4,5,6
 | 
						|
]
 | 
						|
 | 
						|
assert sum(a) == 21
 | 
						|
 | 
						|
c = [
 | 
						|
    i for i in range(10)
 | 
						|
    if i % 2 == 0
 | 
						|
]
 | 
						|
 | 
						|
assert sum(c) == 20
 | 
						|
 | 
						|
d = (
 | 
						|
    1,2,3
 | 
						|
)
 | 
						|
 | 
						|
assert sum(d) == 6
 | 
						|
 | 
						|
b = {
 | 
						|
    'a': 1,
 | 
						|
    'b': 2,
 | 
						|
    'c': 3
 | 
						|
}
 | 
						|
 | 
						|
assert sum(b.values()) == 6 |