Header Ads

Header ADS

Frequently asked question (FAQ)

 

1.What is the difference between signed and unsigned integers?

For a signed integer one bit is used to indicate the sign - 1 for negative, zero for positive. Thus a 16 bit signed integer only has 15 bits for data whereas a 16 bit unsigned integer has all 16 bits available. This means unsigned integers can have a value twice as high as signed integers (but only positive values)

2.Issue with virtualenv can not activate in Windows?

source is a shell command designed for users running on Linux (or any Posix, but whatever, not Windows).

On Windows, virtualenv creates a batch file, so you should run  

venv\Scripts\activate.bat  instead of

sourcevenv\Scripts\activate

(per the virtualenv documentation on the activate script)

3.how to take two list input and convert them in dictionary 

dic=dict(zip(keys,values)) 

4.How to take a dictionary as input

import ast
a = input("Please enter a dictionary: ")
d = ast.literal_eval(a)
print (d)

 

 


কোন মন্তব্য নেই

Blogger দ্বারা পরিচালিত.