Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
Recent questions tagged Python
0
votes
Q: Delete an element from a dictionary
How can I delete an element from a dictionary? In order to return a copy, how can I delete an element/ ... modifying the original)? Select the correct answer from above options...
asked
Jan 24, 2022
in
Education
by
JackTerrance
python
pop
del
dictionary
0
votes
Q: What is the meaning of a single and a double underscore before an object name?
What is the meaning of using leading underscores before the name of an object in Python? And what's the difference ... , method, etc.? Select the correct answer from above options...
asked
Jan 24, 2022
in
Education
by
JackTerrance
python-faq
python
0
votes
Q: Replacements for switch statement in Python?
I want to write a program which returns different values for different input,it can be easily done using switch ... some alternative? Select the correct answer from above options...
asked
Jan 24, 2022
in
Education
by
JackTerrance
switch-statement
python-faq
python
0
votes
Q: How do I lowercase a string in Python?
How can I convert a str from uppercase, or half uppercase to lowercase? E.x. "Decimeter" to "decimeter" Select the correct answer from above options...
asked
Jan 24, 2022
in
Education
by
JackTerrance
python
python-faq
string
uppercase
0
votes
Q: How do I get the number of elements in a list in Python?
How can I get the number of elements of a list? Ex- items = [] items.append("one") items.append("two") items.append("three") Select the correct answer from above options...
asked
Jan 24, 2022
in
Education
by
JackTerrance
python
python-faq
list
0
votes
Q: Find current directory and file's directory
In Python What command can I use to find these: Location of file which I am executing, and Current directory ( ... script in Python) Select the correct answer from above options...
asked
Jan 24, 2022
in
Education
by
JackTerrance
python
python-faq
directory
0
votes
Q: How do I copy a file in Python?
How to copy a file in python? I already read this but found nothing. Select the correct answer from above options...
asked
Jan 24, 2022
in
Education
by
JackTerrance
python
filesystem
file
0
votes
Q: Understanding Python super() with __init__() methods
I am a learner and just want to know the basic concept of super(). Here in the given code I want to know ... () ChildOne() ChildTwo() Select the correct answer from above options...
asked
Jan 24, 2022
in
Education
by
JackTerrance
python
python-faq
oop
super
0
votes
Q: Iterating over dictionaries using 'for' loops
I am a bit puzzled by the following code: d = {'x': 1, 'y': 2, 'z': 3} for key in d: print key ... Python? Or is it simply a variable? Select the correct answer from above options...
asked
Jan 24, 2022
in
Education
by
JackTerrance
python
dictionary
python-keyword
0
votes
Q: Using global variables in a function
In a function, How to create and use a global variable? How can I use it in other functions? Is it compulsory ... it in a function? Select the correct answer from above options...
asked
Jan 24, 2022
in
Education
by
JackTerrance
python
python-faq
global-variables
Page:
« prev
1
...
21
22
23
24
...