Predict the output of the following codes :
a, b, c, = 10, 20, 30
p, q, r=c-5, a+3, b-4
print (a, b, c:', a, b, c, end=' ')
print ('p,q,r:', p, q,r)
Answers
Answered by
17
Following are the output to this question:
output:
a, b, c: 10 20 30 p,q,r: 25 13 16
Explanation:
In the give python code, there is some syntax so, the correct code to this question can be described as follows:
Code:
a, b, c, = 10, 20, 30 # defining variable and assign a value
p, q, r=c-5, a+3, b-4 # calculate the value
print ('a, b, c: ', a, b, c, end=' ') #print assign values
print ('p,q,r:', p, q,r) #print calculated value
Description of the code:
- In the above program code, three variable is declared, in which it assigns a value that is 10, 20, and 30.
- In the next line, another three variable "p, q, and r" is declared, that calculates its value, in the next step, two print method is used.
- In the first print method, it will print a,b, and c variable value, and in the next method, it will prints its calculated value.
Learn more:
- Output: https://brainly.in/question/14887111
Answered by
2
Answer:
very perfect answer
good job
it is explain very perfectly
Similar questions
English,
6 months ago
Hindi,
6 months ago
English,
1 year ago
Social Sciences,
1 year ago
Math,
1 year ago