Lesson 1 Flashcards
1
Q
while syntax?
A
- The code influenced by the while must be indented import webbrowser count = 0 while(count): content
2
Q
How to open a webpage?
A
import webbrowser
webbrowser.open(“youtube.com”)
3
Q
How to make the program to wait for some time?
A
import time
time.sleep(10)
4
Q
How to draw?
A
import turtle
5
Q
How to access files?
A
- import os
- To get the names of the files os.listdir
- To change work directory os.chdir
- To rename files os.remane
6
Q
if?
A
if statement:
code
7
Q
What is the name of the library to send text messages?
A
Twilio