questions/python
It will print concatenated lists. Output would ...READ MORE
How can I pass optional or keyword ...READ MORE
The map() function in Python is a ...READ MORE
The recommended path for Python 3.10 which ...READ MORE
Yes you can check below code dictionary = ...READ MORE
Hello @ pagarsach, You can convert a string to ...READ MORE
import turtle wn = turtle.Screen() wn.bgcolor("blue") wn.tracer(0) #Paddle A paddle_a = turtle.Turtle() paddle_a.speed(0) paddle_a.shape("square") paddle_a.color("red") paddle_a.ShapeSize paddle_a.penup() paddle_a.goto(-350, ...READ MORE
num = input("enter number") print(num) READ MORE
The Django 1.5 supports the Python 2.6.5 ...READ MORE
Here is one implementation: class Enum(set): ...READ MORE
It's pretty simple really: a[start:end] # items start ...READ MORE
As long as the dependency is listed ...READ MORE
You can try this code list1=[] for i in ...READ MORE
The canonical solution in the standard library ...READ MORE
<a class="quickreports btn btn3d tbbtn" href="javascript:" style="position:static" ...READ MORE
How do you make a class, abstract ...READ MORE
I have slightly modified your program to ...READ MORE
super(x) returns an "unbound" descriptor, that is, ...READ MORE
You can view a full example here: http://www.diveintopython.net/power_of_introspection/index.html Introspection ...READ MORE
A metaclass instantiates and defines behavior for ...READ MORE
Instead of multiplying the number of nodes ...READ MORE
The correct, fully Pythonic way to read ...READ MORE
You can try the following: if not a: print("List ...READ MORE
you can use str.index too: >>> 'sdfasdf'.index('cc') Traceback ...READ MORE
>>> 'hello world'[::-1] 'dlrow olleh' This is extended slice syntax. It ...READ MORE
Yes assignment operator can be used to ...READ MORE
If you have HiveServer2 installed you can ...READ MORE
The filter() function in Python takes in ...READ MORE
It comes with the official python setup. ...READ MORE
Use the following code: import numpy as np a=np.array([1,2,3,4]) b=np.delete(a,2) OUTPUT: array([1, ...READ MORE
dict3 = dict1.copy() # merges ...READ MORE
Hi, You can use dedicated hooks(decorators) called before ...READ MORE
can you an example for each? READ MORE
a = [10,20,30,40,10,20,30,40,30,40,50,60] s = set(a) c = list(s) print(c) this ...READ MORE
Pytype checks and infers types for your ...READ MORE
Closures don't refer to variables but rather ...READ MORE
You can use the module - openpyxl ...READ MORE
Execute the following commands to install matplotlib ...READ MORE
There is no add() , append() , or insert() method ...READ MORE
If you want to find some fixed ...READ MORE
Use this line: numpy_array = np.array(list) And printing/displaying the ...READ MORE
You can use QtCore.QTimer class Example(QWidget): def __init__(self, app): QWidget.__init__(self) QTimer.singleShot(0, ...READ MORE
Follow these steps to install virtualenv on ...READ MORE
Try the strip() function: s = s.strip() If you ...READ MORE
Here's my code: import math print("Hey, lets solve Task ...READ MORE
I think u didn't install Django. python -m ...READ MORE
I'm planning to create a simple mini-language ...READ MORE
Use this - numpy.savetxt("data.csv", arr, delimiter=",") READ MORE
The following method should solve this. def nearest_square(limit): ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.