Save
Upgrade to remove ads
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

Programming #1

QuestionAnswer
What is command "finally" when handeling exceptions no matter if try or except is used, finally is executed every time
What is "is" operator similiar to ==, but checks if object same are #a=1 & b=1 #a==b >>> True #a is b >>> False
What are multiline strings """ at beginning and end text can go over multiple lines of the code
How to calculate 2^10 in Python (2) 1, 2**10 2, 2E10
How to use reverved characters like ", ', \ #with \ infront of the character print(\"Hello\" ) >>> "Hello"
What happen if we convert booleans into integers True >>> 1 False >>> 0
How can we find out if we can convert string into integer without error text="13345" text.isdigit() >>> True ! if "." inside like float that returns false!
What are command to search first occurance of an letter (3) 1, ("x").index("text") #if not in text returns an error 2, ("x").find("text") #if not in text returns -1 3,("x").rfind("text") like find but search for last occurance
How do we make command for if and else in one line "value if true" if CONDITION else "value if false" # status="Adult" if age>=18 else status="Minor" print(status)
What if the third argument in for a in range the third argument is which each step should work for nr in range (1,11,2) >>>>1,3,5,7,9
How to change that print doesnt go to next line print("text",end="") #default is print("text",end="\n")
What can we set number of decimals in number variable with f" " pi=3.14189 print(f"{pi:.2f}")
What is difference between extend and append if we want to add list to list extend >>> iterate items and add every single into list append >>> add the whole list into list
How can we delete items from list if we know the name the_list.remove("name")
Created by: semester1.IBWL
 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards