About 532,000 results
Open links in new tab
  1. Python 3 Jupyter Notebook "if" statement - Stack Overflow

    Feb 21, 2017 · I am trying to create an "if" statement. But it comes back with an error. I have tried the same statement in pycharm and it works. I use jupyter notebook so that it tells my any …

  2. Combining the results of two if statements - python / jupyter notebook ...

    Aug 30, 2017 · I'm using a Jupyter Notebook where each of the chunks below are in a separate cell. The results of the first if statement = 440 the second if statement = 473. The desired …

  3. python - Nested list indexing - Jupyter notebook - Stack Overflow

    Feb 20, 2019 · "a,b,c" appears to be a single string you should split this to turn it into an list first, then try to index the elements. new_list = [ 1, 2, ['a, b, c,']] new_list[2].split(',')[0] # returns a …

  4. Python Statements - notebook.community

    The for loop statement is used to iterate over a sequence data type or other iterable objects. Iterating over a sequence is called traversal. Loop continues until the condition is met or the …

  5. | notebook.community

    We write this out in a nested structure. Take note of how the if,elif,and else line up in the code. This can help you see what if is related to what elif or else statements. We'll reintroduce a …

  6. Nested-if statement in Python - GeeksforGeeks

    Dec 18, 2024 · A nested if statement in Python is an if statement located within another if or else clause. This nesting can continue with multiple layers, allowing programmers to evaluate …

  7. intro-to-python-jupyter-notebooks/10-If, elif, and else ... - GitHub

    Jupyter Notebooks for AI@CUMC's Python Workshops. Contribute to tesla809/intro-to-python-jupyter-notebooks development by creating an account on GitHub.

  8. 22 Python elif and nested if else using jupyter notebook by ... - YouTube

    22 Python elif and nested if else using jupyter notebook by Atif Masih. 22 video of learn python 3 with Atif Masih series this is a 3rd part of conditional statements in python in...

  9. Jupyter If Statements - University of British Columbia

    All you need to do is use the 'input()' statement. val = input("Enter your value: ") if val == 'y': print('yes') elif val == 'n': print('no') else: print('invalid response')

  10. How can I add a table of contents to a Jupyter / JupyterLab notebook

    There are already many good answers to this question, but they often require tweaks to work properly with notebooks in JupyterLab. I wrote this answer to detail the possible ways of …

  11. Some results have been removed
Refresh