click below
click below
Normal Size Small Size show me how
Python
| Question | Answer |
|---|---|
| Correct way to write a basic for loop | for i in q: |
| Correct way to write a for loop for index | for i in len(q): |
| When converting to a decimal number what should you use? | float() |
| What is int() for? | Converting to non-decimal numbers |
| How do you end a loop? | break or quit() |
| Can while loops equal True? | Ja |
| What statement(s) can be used for multiple choices or certain conditions? | if/elif/else |
| How do you convert decimals in a string to usable numbers? | int(float()) |
| What is the memorable name for int? | Ent |
| How are elifs remembered? | Elf |
| How do you use format? | f'txt {var or math} more txt' |