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 139 views
2 answers 130 views
2 answers 236 views
1 answer 310 views
1 answer 241 views
2 answers 396 views
...