Prem Prakash

2.3K posts

Prem Prakash banner
Prem Prakash

Prem Prakash

@4EverPrem

Python Enthusiast, Runner YT: https://t.co/iDZxYqUWMt

India Katılım Mayıs 2014
49 Takip Edilen193 Takipçiler
freeCodeCamp.org
freeCodeCamp.org@freeCodeCamp·
For today's coding challenge, you'll get a string for a coffee order. You'll need to identify any menu items and return a formatted order. Check it out on the freeCodeCamp mobile app.
freeCodeCamp.org tweet media
English
2
5
52
5.4K
Prem Prakash
Prem Prakash@4EverPrem·
@FTPfbd @MORTHIndia I have been receiving SMS regarding traffic challan, each time for different vehicle number. Plz check your system & update. I neither live in Faridabad nor have a vehicle.
Prem Prakash tweet mediaPrem Prakash tweet mediaPrem Prakash tweet media
English
1
0
0
87
Prem Prakash
Prem Prakash@4EverPrem·
@FTPfbd @MORTHIndia Dear Sir/Madam, received one more SMS couple of minutes back regarding challan. Please check what is wrong with the system and fix it.
Prem Prakash tweet media
English
1
0
0
40
Traffic Police FBD
Traffic Police FBD@FTPfbd·
@4EverPrem @MORTHIndia The issue has been noted and forwarded to the concerned branch for necessary action. The system will be checked and corrected accordingly. Regards, Faridabad Traffic Police
English
2
0
0
57
Prem Prakash
Prem Prakash@4EverPrem·
@FTPfbd @MORTHIndia Dear Sir/Madam, whole point of raising this issue is that I do not have any vehicle, still getting these SMS, each time with different vehicle number. Seems like your system has a glitch. Plz have it corrected 🙏
English
1
0
0
36
Traffic Police FBD
Traffic Police FBD@FTPfbd·
@4EverPrem @MORTHIndia Thank you for bringing this to our notice. Kindly share your vehicle number, challan number and supporting details so the issue can be verified. You may also email your grievance at dcptraffic.fbd-hry@nic.in. Appropriate action will be taken after examination.
English
1
0
0
41
Ruksana Ansar
Ruksana Ansar@RuksanaAnsar·
90% of people get this wrong! Can you find the three numbers?
Ruksana Ansar tweet media
English
640
152
413
40.9K
Prem Prakash
Prem Prakash@4EverPrem·
@Python_Dv Error. num is a local variable and exists only in the function fun1, therefore, when it is called outside the function, it will result in error.
English
0
0
1
140
Python Developer
Python Developer@PythonDvz·
What is the output? Write your answer in the comments and share it with your friends 👑👑
Python Developer tweet media
English
14
8
77
6.9K
Prem Prakash
Prem Prakash@4EverPrem·
@clcoding None. append method adds element at the end of the list but returns None. Below code will print [1, 2, 3, 4] a = [1,2,3] a.append(4) print(a)
English
0
0
1
47
Python Coding
Python Coding@clcoding·
What will be the output of the following Python code? a = [1, 2, 3] print(a.append(4))
English
14
5
32
7.8K
Prem Prakash
Prem Prakash@4EverPrem·
@Astro_Panditji_ So in this entire world, only Mukesh Ambani and Ratan Tata were born on these two dates ?? Not a single other person was born ???
English
0
0
0
36
Researcher of Astrology
Researcher of Astrology@Astro_Panditji_·
Mukesh Ambani = 19 April 1957 → 1+9+4+1+9+5+7 = 36 3 + 6 = 9 → Mars’ number (Empire builder) Ratan Tata = 28 December 1937 → 2+8+1+2+1+9+3+7 = 33 3 + 3 = 6 → Venus’ number (Legacy & influence) Drop your Date of Birth Find something about yourself. RT, Follow and Like.
English
4K
439
3.3K
657.7K
Prem Prakash
Prem Prakash@4EverPrem·
@Python_Dv No output. When 7 is divided by 2, the remainder is 1 and not 0, therefore, the if clause is not met. As a result, none of the print statements are executed. Mind it None is a keyword in Python so None is not the correct answer.
English
0
0
1
563
Prem Prakash
Prem Prakash@4EverPrem·
@RealBenjizo Error. Instance methods must always accept the instance as the first parameter. If we insert self in class X6, it will work.
English
1
0
3
762
Benjamin Bennett Alexander
Benjamin Bennett Alexander@RealBenjizo·
Python question: Do you know Python classes? What is the output of this code and why?
Benjamin Bennett Alexander tweet media
English
16
7
94
13.9K
Prem Prakash
Prem Prakash@4EverPrem·
@clcoding [-2, -1, 1, 2] Although not explicitly specified, filter will keep only those values from the nums list which are truthy in nature and filter out falsy values. Zeros are falsy and non-zeros truthy so it outputs [-2, -1, 1, 2]
English
0
0
1
88
Python Coding
Python Coding@clcoding·
What will be the output of the following Python code? nums = [-2, -1, 0, 1, 2] print(list(filter(lambda x: x, nums)))
English
7
5
27
5.8K
Python Developer
Python Developer@PythonDvz·
Comment your answer below! Think you know Python inside out? 🐍 Test your coding skills with these tricky Python output questions! Can you crack this code? Let’s find out!
Python Developer tweet media
English
13
6
38
4.8K
Prem Prakash
Prem Prakash@4EverPrem·
@clcoding [1]. items is a class attribute and not an instance attribute.
English
0
0
0
45
Prem Prakash
Prem Prakash@4EverPrem·
@clcoding 1 2 if the code is t = ((1,2),(3,4),(5,6)) for a, b in t: print(a, b) It prints 1 2 3 4 5 6 clearly, a is first element and b is second element of each individual tuple in t. Coming back to code in question, in 2nd iteration, a = 3 so loop breaks out and printing 1 2
English
0
0
2
387
Python Coding
Python Coding@clcoding·
What will be the output of the following Python code? t = ((1, 2), (3, 4), (5, 6)) for a, b in t: if a == 3: break print(a, b)
English
8
1
29
8.4K
Prem Prakash
Prem Prakash@4EverPrem·
@Python_Dv [1 3] => it will be without the commas in between 1 and 3 numpy array slicing is same as Python list slicing.
English
0
0
0
151
Python Developer
Python Developer@PythonDvz·
Comment your answer now ⬇️
Python Developer tweet media
English
14
6
65
7.8K
Prem Prakash
Prem Prakash@4EverPrem·
@clcoding 1 5 When t is instantiated, t.f is pointing to method f. t.f() -> method f is called -> self.f = 5 assigns 5 to f but return 1 overwrites it with 1. So t.f() = 1 t.f -> Now t.f is no longer a method after it and as previously is re-assigned to 5, so t.f = 5
English
0
0
1
108
Prem Prakash
Prem Prakash@4EverPrem·
@PythonPr 5. Python passes values to a variable by object reference. Since y is int, it is immutable, therefore, y is a new object different from x and allocated different memory. Therefore, changes in x does not impact y.
English
0
0
2
407
Python Programming
Python Programming@PythonPr·
Python Question / Quiz; What is the output of the following Python code, and why? Comment your answers below!
Python Programming tweet media
English
28
7
61
10.2K
Python Programming
Python Programming@PythonPr·
What is The Difference ❓ Comment The Answer
Python Programming tweet media
English
14
3
71
19.4K