# Python course Questions?
* what if somehow from previous time I have already Jupyter and want to create a new space for these lessons?
* I have problem with rise module, I'm using windows and conda:
"UnsatisfiableError: The following specifications were found to be incompatible with the existing python installation in your environment:
Specifications:
- rise -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.8,<3.9.0a0|>=3.9,<3.10.0a0']
Your python: python=3.10"
* Is there a way to verify that these packages were correctly installed? (conda list, conda list | grep ... , import numpy)
* whats the code for Mac for installation of the packages? I am getting all the time SyntaxError
* How can I exit from the notebook on conda? (Crtl+C)
* We are now running our functions in the jupyter notebook, is it always true in Python? The Terminal is "just" loading packages and then open new environments, or is it just for the moment?
* I have a question that how we can perform all these operations in python. I have installed python but I don't know how to run all these operations there. Or how can we check whether all the packages are installed properly or not. (conda list, python3 -c "import <package_name>; print(<package_name>.__version__)")
* so if I need to do anything more than evaluate a single expression I need to define a function that will be used in the whole module? (what are the limitations of lambda functions)
* To remove environment (use it carefully!) (conda remove -n ENV_NAME --all)
* i if create another list b=[4,5,6] and then you apply append function to link the two lists would that work? is it mandatory to keep the squared brackets?
* how can i sort a list of strings?
* How to create a file book.py? I have some confusion in it
* How can I create another object which is the sorted version of library? As example library1
* hence = assigns by reference and not by value? is this valid only for lists or for everything?
* none is equal to false? is there a null?
* Does set() automatically sort the list? I am trying to use set and frozenset() but the results keep to be the same (Basically, when you convert to a set, you lose the order because set are not ordered. When you convert the set back, Python need to assign a new order from scratch, so by default it sort the new list. Thus you will obtain a sorted list if you convert from a list to a set and then viceversa)
* Thus you will obtain a sorted list if you convert from a list to a set and then viceversa
* is there a standard commenting practice to describe functions? (like roxygen for R) I didn't mean block comments, but standard structures of comments (title, description, list of arguments, returned values etc.) (you can give a look on some well documented function in https://numpy.org/doc/stable/reference/generated/numpy.average.html)
* my function is_prime.py is not recognised by Jupyter, it says that the name is_prime is not defined. I put the #!/usr/bin/env/python3 line at beginning of is_prime.py, both commented and uncommented, both don't work. If I directly prompt the function on Jupyter, it works as intended (the space between #! /usr....)
* string interpolation is similar to php?
* map() can operate on multiple iterables. if there are more parameters (i.e. a list of length 10, a list of length 2 and a scalar, so length 1), how many times will map be executed? if there is a list of length 10 and a scalar, how many times will the mapped function be executed?
* Example: def f(x, exponent):
* return(x ** exp)
* map(f, 1:10, 3) #how many times is this executed?
**Ans: ** If you use map() to apply a function with one parameter (e.g., a scalar value) to a sequence of length 10, the function will be executed 10 times, once for each element of the sequence.