How to initialize multiple variables one line with Python

2 Answers

0 votes
first = 23; second = 5; third = 198

print(first, second, third)
    


 
     
'''
run:
     
23 5 198
            
'''

 



answered Dec 17, 2021 by avibootz
0 votes
first, second, third = [4, 87, 971]
 
print(first, second, third)
     
 
 
  
      
'''
run:
      
4 87 971
             
'''

 



answered Dec 17, 2021 by avibootz
...