+ 6

# PYTHON DOUBTS

We have many doubts related to Python. Let's help each other to solve those doubts. Many of us have doubts that are not included in the course. Let's post them here and get this thread to the top to make it reach to Sololearn, so that other beginners don't face same kind of issues.

12th Apr 2017, 7:21 AM
Utpal Savliya
+ 4
@Utpal Savliya I've seen more doubts at Ruby than Python, all they say is its only good for exploits and other than that its a pain in the ass even thou its not =(
12th Apr 2017, 11:05 AM
MrCoder
+ 12
What if Python isn't a snake? I doubt that it is. I just have this weird hunch that it's a group of humorous men from the British Isles...
12th Apr 2017, 8:26 AM
Ahri Fox
+ 10
@Utpal Check it Out! Its my Python Doubt! https://code.sololearn.com/cm91X7sU1148/?ref=app
17th Apr 2017, 9:48 AM
Harshit Gupta
+ 5
12th Apr 2017, 10:34 AM
Utpal Savliya
+ 5
@Harshit Gupta I guess that code will help you out. https://code.sololearn.com/c5780coR1nLQ/?ref=app Utpal Rock(Rox). Cheers with my bottle's cap. (^^)^_^😎😁😂😉
19th Apr 2017, 5:59 AM
Utpal Savliya
+ 2
Here, 9**19 = int(9**19) = 1350851717672992089 float(9**19) = 1350851717672992e+18 int(float(9**19)) = 19508517176729920000 clearly, 9**19 == int(float(9**19)) will result in False. int(False) will result in 0 and that's the answer. Like in mathematics, where we use scientific notation and approximate values or round them, in python it also happens, as these last digits don't have value when compared with such large numbers. I guess that's the reason.
19th Apr 2017, 5:54 AM
Utpal Savliya
0
Write a python program to remove all the lines that contain character a in a file and write it to another file
29th Oct 2020, 7:10 AM
Pramod Kumar Choudhary
0
>>>x={'a':12} >>>y={'p':45,'q':34} >>>z={**x,**y} >>>print(z) Output. ?
28th Apr 2021, 3:22 AM
Ajaijaisingh K