FAQ   Python FAQ


Topic Replies Activity
About the Python FAQ category 2 January 25, 2019
Why learn Python? 26 January 14, 2020
Why is it invalid to add a period after a variable name to make it a float? 27 November 10, 2019
Why do my hobbies have a ‘u’ before them when I print them? 21 July 7, 2019
Can a tuple be used as a dictionary key? 1 August 9, 2018
What is a block of code? 4 August 8, 2018
Why didn’t my product display on the screen? 10 September 21, 2018
What does importing a library do? 5 June 20, 2019
Can a dictionary repeat identical keys or values? 1 October 24, 2019
How do I assign a value to a variable? 16 January 14, 2020
What else can I make with what I’ve learned so far? 1 June 19, 2018
Can the start or end of a list slice contain a negative number? 1 July 28, 2018
If most numbers can be represented as a float value, why would we need to use integers? 3 December 13, 2019
Where should comments be added in code? 20 January 22, 2020
How can I determine if a dictionary is empty? 1 August 9, 2018
What other string methods are there? 1 October 30, 2018
Can I use more than one type conversion at once? 2 May 3, 2018
What happens if a list contains duplicates when creating a dictionary using zip and a list comprehension? 3 January 16, 2020
What are some differences between a statement and a function in Python? 3 January 2, 2020
What are the differences between instance variables and class variables, or why do I need to use `self.pi`? 20 November 7, 2019
Can the += operator be used to add more than one value at a time? 12 January 4, 2020
What common errors should I look for? 3 March 16, 2019
How should I read an error message to fix the code that caused it? 1 March 8, 2018
What can I store in a variable? 2 June 13, 2018
Is there a shorthand method to repeat a string multiple times? 2 June 5, 2019
How can I find all indices where a substring appears in a string? 3 November 13, 2019
Why is it not accepting my code? 1 March 8, 2018
Can we perform calculations between Decimal objects and other values? 1 October 30, 2018
What are some common uses for multi-line comments? 2 March 24, 2018
What does it mean that Python is an “object-oriented” language? 10 October 10, 2019