forked from FatimaYousif/Hacktoberfest-fun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAnswers.txt
30 lines (19 loc) · 906 Bytes
/
Answers.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
##################
ANSWERS FILE
##################
q: Can Python be used for robotics?
a: Yes, MicroPython has taken the robotics industry by storm. From Arduino to Raspberry Pi, lots of embedded systems and IoT systems are using Python, embedded systems are the founding pillars of robotics.
Note: Answer the question given in Questions.txt file here along with the question.
q: Initilize a variable in python
a: var = "variable"
q: How to add multi-line comments in python
a: to add multi-line comments, use three """ and write your comment in between.
ie:
"""
multi-line comment
"""
=======
a: python doesn't support multi line comments.
we have to comment each line individually.
q: What is the difference between local and global variables?
a: Local Variables are only acessed in functions or block where they are defined, while global variables can be acessed globally in whole program.