About 558,000 results
Open links in new tab
  1. 3. Decision Making With if, else, and elif — Python for Scientific ...

    To move beyond using Python to execute a simple sequence of commands, two new algorithmic features are needed: decision making and repetition (with variation). In this unit we look at …

  2. 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 …

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

    Feb 20, 2019 · Cannot seem to get my head around retrieving a letter 'a' from the list below: new_list = [ 1, 2, ['a, b, c,']] I know i'm supposed to index out 2 by typing: new_list [2] this gives …

  4. For-loop across multiple cells - Notebook - Jupyter Community …

    Jul 19, 2022 · In one of the cells I’ve declared a variable as a single text string (e.g. iso3 ← ‘USA’), which I would instead like to change to a list of text strings (e.g. iso3 ← c (‘USA’, …

  5. 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 …

  6. 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')

  7. 02-if, elif, and else Statements - datasciencelovers.com

    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 …

  8. 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.

  9. 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 …

  10. 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...

  11. Some results have been removed
Refresh