Gauresh Alai

10 posts

Gauresh Alai

Gauresh Alai

@GaureshAlai

Pune Katılım Haziran 2021
66 Takip Edilen7 Takipçiler
Python Coding
Python Coding@clcoding·
What is the output of following Python Code?
Python Coding tweet media
English
114
67
626
169.1K
Gauresh Alai
Gauresh Alai@GaureshAlai·
@Python_Dv Ans. (d)TypeError As it is (integer+string) So,It won't be added so there will be error
English
0
0
1
9
Gauresh Alai
Gauresh Alai@GaureshAlai·
@Python_Dv 16 + 4 = 20 25 + 5 = 30 36 + 6 = 42 49 + 7 = 56 Ans: 56 formula: n^2 + n (where, n = 4, 5, 6, 7)
English
0
0
1
10
Gauresh Alai
Gauresh Alai@GaureshAlai·
@Python_Dv Output:73.0 Line 1 = "7" It takes input as a string. Line 2 = "7"+"0" = "70" then In line it concatenates 7 & 0 as a string . Line 3 = 70+3 = 73 then in this line the fruits is converted into integer then there is a addition of 70+3. Line 4 = 73.0 then in this line o/p is infloat
English
0
0
2
29
Gauresh Alai
Gauresh Alai@GaureshAlai·
@clcoding A. Wow! As in first condition met i.e x==1. So,the program ends there and the output is (Wow!)
English
0
0
2
457
Python Coding
Python Coding@clcoding·
What is the output of following Python code?
English
73
38
332
64.9K
Gauresh Alai
Gauresh Alai@GaureshAlai·
@Python_Dv The Correct answer there is (b) The loop of Will print '0 1 2' which is less than 3. Upon exiting the loop, the Else block will print '0'. Therefore, the output will be '0 1 2 0'
English
0
0
1
26