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 136 views
2 answers 126 views
2 answers 234 views
1 answer 297 views
1 answer 235 views
2 answers 391 views
...