How to declare multiple variable in one line in Python

1 Answer

0 votes
f1, f2, f3, n, s = -1.1, 1.5, -19.6, 4837, "python"

print(f1)
print(f2)
print(f3)
print(n)
print(s)



'''
run:

-1.1
1.5
-19.6
4837
python

'''

 



answered Jun 9, 2022 by avibootz

Related questions

1 answer 135 views
2 answers 125 views
2 answers 231 views
1 answer 290 views
1 answer 232 views
2 answers 384 views
...