join this and discuss programming in Telugu @coding_teluguchat
Which of the following is true for variable names in Python?
Anonymous Quiz
60%
unlimited length
0%
all private members must have leading and trailing underscores
20%
underscore and ampersand are the only two special characters allowed
20%
none of the above
Which of the following is an invalid statement?(python)
Anonymous Quiz
40%
abc = 1,000,000
40%
a b c = 1000 2000 3000
0%
a,b,c = 1000, 2000, 3000
20%
a_b_c = 1,000,000
Which of the following version of Python was released in December,2015 by Python.org?
Anonymous Quiz
25%
3.5.1
50%
2.8.2
25%
3.2.5
0%
2.51
What is the name of the GUI that comes in-built as an interactive shell with Python?
Anonymous Quiz
0%
PGUI
17%
pyshell
83%
IDLE
0%
pythonSh
The function to display a specified message on the screen is ... ?
Anonymous Quiz
29%
run
0%
display
29%
output
43%
print
Random password generator in python
input
import random
passlen = int(input("enter the length of password"))
s="abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()?"
p = "".join(random.sample(s,passlen ))
print (p)
input
import random
passlen = int(input("enter the length of password"))
s="abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()?"
p = "".join(random.sample(s,passlen ))
print (p)
Python programming codes pinned «Random password generator in python input import random passlen = int(input("enter the length of password")) s="abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()?" p = "".join(random.sample(s,passlen )) print (p)»
A user-specified value can be assigned to a variable with ______ function.
Anonymous Quiz
17%
value
83%
input
0%
user
0%
enter
User input is read as ________ ?
Anonymous Quiz
0%
floating decimal
83%
text string
0%
Integer
17%
Boolean value
Output displayed by the print function will add this invisible character at the end of the line by default ...
Anonymous Quiz
20%
\r
0%
/s
80%
/n
0%
/t
Multiple values specified in parentheses to print function will display each value separated with this by default ...
Anonymous Quiz
80%
Single Space
0%
Double Space
0%
A New Line
20%
Double Lines
Which of the following will provide an ! character as alternative separator for the print function?
Anonymous Quiz
38%
separate = !
25%
sep is !
13%
sep >> '!'
25%
sep = '!'