It shows error and says you have not define variable S but i already have. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

It shows error and says you have not define variable S but i already have.

floatS floatV floatT print ("S=7425/1.609") print("V=550/1.609") print('T= S/V')

5th Aug 2022, 10:10 AM
Siyam Waheed
Siyam Waheed - avatar
4 Answers
+ 4
S = 7425/1.609 V = 550/1.609 T = S/V print(S, V, T, sep="\n")
5th Aug 2022, 10:43 AM
SoloProg
SoloProg - avatar
+ 3
The separator between the arguments to print() function in Python is space by default (softspace feature) , which can be modified and can be made to any character, integer or string as per our choice.
5th Aug 2022, 10:53 AM
SoloProg
SoloProg - avatar
+ 2
Thankyou very much
5th Aug 2022, 11:04 AM
Siyam Waheed
Siyam Waheed - avatar
0
What does sep do
5th Aug 2022, 10:44 AM
Siyam Waheed
Siyam Waheed - avatar