Skip to content

Commit e0933e9

Browse files
authored
Update README.md
1 parent dcbb1c8 commit e0933e9

File tree

1 file changed

+29
-121
lines changed

1 file changed

+29
-121
lines changed

README.md

Lines changed: 29 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
- ##### Exceptions
1818

1919

20-
21-
22-
2320
- Capgemini
2421
#### What is a method?
2522

@@ -70,24 +67,26 @@ To convert, e.g., the number 144 to the string '144', use the built-in function
7067

7168
It is not best for mobile application
7269
Due to interpreter its execution speed is not up to mark as compared to compiler
70+
7371
#### How is the Implementation of Python's dictionaries done?
7472

7573
Python dictionary needs to be declared first:
76-
dict = { }
74+
`dict = { }`
7775

7876
Key value pair can be added as:
79-
dict[key] = value
77+
`dict[key] = value`
8078
or
81-
objDict.update({key:value})
79+
`objDict.update({key:value})`
8280

8381
Remove element by:
84-
dict.pop(key)
82+
`dict.pop(key)`
8583

8684
Remove all:
87-
objDict.clear()
88-
A hash value of the key is computed using a hash function, The hash value addresses a location in an array of "buckets" or "collision lists" which contains the (key , value) pa...
85+
`objDict.clear()`
86+
A hash value of the key is computed using a hash function, The hash value addresses a location in an array of "buckets" or "collision lists" which contains the (key , value) pair.
8987

9088
#### What is used to create Unicode string in Python?
89+
9190
"u" should be added before the string
9291
``
9392
a=u"Python"
@@ -98,10 +97,12 @@ Add unicode before the string. Ex: unicode(text) resulting in text.
9897
#### What is the built-in function used in Python to iterate over a sequence of numbers?
9998

10099
Syntax : range(start,end,step count)
101-
Ex: a = range(1,10,2)
102-
print a
100+
Ex:
101+
`a = range(1,10,2)
102+
print (a)`
103103

104-
Output: [1, 3, 5, 7, 9]
104+
Output:
105+
`[1, 3, 5, 7, 9]`
105106

106107
If using to iterate
107108
``
@@ -138,7 +139,6 @@ Actually there is no switch statement in the Python programming language but the
138139
#### What is the statement that can be used in Python if a statement is required syntactically but the program requires no action?
139140

140141
pass
141-
142142
Code:
143143
``
144144
try x[10]:
@@ -167,12 +167,8 @@ Most preferable way by PEP 8 is in double quotes
167167

168168
Yes, Python Supports Regular Expressions Well.
169169
There is a lot of other languages that have good support to RegEx-
170-
Perl
171-
Awk
172-
Sed
173-
Java
174-
etc.
175-
170+
Perl,Awk,Sed,Java etc.
171+
176172
Yes python strongly support regular expression. Other languages supporting regular expressions are: Delphi, Java, Java script, .NET, Perl, Php, Posix, python, Ruby, Tcl, Visual Basic, XML schema, VB script, Visual Basic 6.
177173

178174
#### How is memory managed in Python?
@@ -186,114 +182,26 @@ Like other programming language python also has garbage collector which will tak
186182
Lambdas evaluates at run time and these do not need statements
187183
Lambda is a anonymous function, which does not have a name and no fixed number of arguments. Represented by keyword lambda followed by statement.
188184
Ex:
189-
sum = lambda a,b: a+b
190-
sum(2,3)
191-
output: 5
192-
Answer Question
193-
194-
Select Best Answer
195-
196-
May 29 2015 08:23 AM
197-
3412
198-
Views
199-
0
200-
Ans
201-
202-
Encryption with AES/CBC/PKCS5
203-
204-
radha
205-
Python Interview Questions
206-
207-
AES Encryption using CBC/PKCS5 padding in python while decrypting in java it is given below error
208-
209-
javax.crypto.BadPaddingException: Decryption error at sun.security.rsa.RSAPadding.unpadV15(Unknown Source) at sun.security.rsa.RSAPadding.unpad(Unknown Source) at com.sun.crypto.provider.RSACipher.doFinal(RSACipher.java:363) at com.sun.crypto.provider.RSACipher.engineDoFinal(RSACipher.java:389)...
210-
Answer Question
211-
Jan 04 2009 01:41 AM
212-
7306
213-
Views
214-
1
215-
Ans
216-
217-
Python Popularity
218-
219-
ushanamballa
220-
Python Interview Questions
221-
222-
Why Python is not that much of popular, when compared to other programming languages?
223-
224-
suji
225-
226-
Mar 2nd, 2012
227-
228-
Python is not so useful in web environment where the user interface is the browser. Hence, lot of people are using PHP for different design goals. Google is tightly connected with python as they make ...
229-
Answer Question
230-
231-
Select Best Answer
232-
233-
Aug 02 2010 03:16 AM
234-
7916
235-
Views
236-
1
237-
Ans
238-
239-
Phyton Advantages and Dis-Advantages
240-
241-
torch_619
242-
Python Interview Questions
243-
244-
What are the advantage and dis-advantage of Phyton programming language?
245-
246-
suji
247-
248-
Mar 2nd, 2012
249-
250-
Python is more like java and bit cumbersome, but it leads to a better design. Python is an interpreted language, high level programming, pure object-oriented, high performance server side scripting la...
251-
Answer Question
252-
253-
Select Best Answer
254-
255-
Jan 08 2007 11:23 AM
256-
4501
257-
Views
258-
2
259-
Ans
185+
` sum = lambda a,b: a+b
186+
sum(2,3)`
187+
output:
188+
5
260189

261-
What is the optional statement used in a try ... except statement in Python?
262-
263-
norman
264-
Python Interview Questions
265-
266-
Priya Patel
190+
#### Why Python is not that much of popular, when compared to other programming languages?
267191

268-
Oct 20th, 2007
192+
Python is not so useful in web environment where the user interface is the browser. Hence, lot of people are using PHP for different design goals. Google is tightly connected with python as they make ...
193+
194+
#### What are the advantage and dis-advantage of Phyton programming language?
269195

270-
There are 2 optional clauses used in try...except statements: 1. else clause: It is useful for code that must be executed when the try block doesn't create any exception2. finally clause:Its is useful for code that must be executed irrespective of whether an exception is generated or not.
271-
xeio
196+
Python is more like java and bit cumbersome, but it leads to a better design. Python is an interpreted language, high level programming, pure object-oriented, high performance server side scripting language.
197+
198+
#### What is the optional statement used in a try ... except statement in Python?
272199

273-
Sep 25th, 2007
274-
275-
Try ... except (...) ... [finally]
276-
Answer Question
277-
278-
Select Best Answer
279-
280-
Jan 08 2007 11:18 AM
281-
4134
282-
Views
283-
1
284-
Ans
200+
There are 2 optional clauses used in try...except statements: 1. else clause: It is useful for code that must be executed when the try block doesn't create any exception2. finally clause:Its is useful for code that must be executed irrespective of whether an exception is generated or not.
285201

286-
What is List Comprehensions feature of Python used for?
287-
288-
SachinDeo
289-
Python Interview Questions
290-
291-
Priya Patel
292-
293-
Oct 19th, 2007
202+
#### What is List Comprehensions feature of Python used for?
294203

295-
List comprehensions help to create and manage lists in a simpler and
296-
clearer way than using map(), filter() and lambda. Each list comprehension
204+
List comprehensions help to create and manage lists in a simpler and clearer way than using map(), filter() and lambda. Each list comprehension
297205
consists of an expression followed by a for clause, then zero or more for or
298206
if clauses.
299207
Answer Question

0 commit comments

Comments
 (0)