Python programming codes
43 subscribers
25 photos
1 video
83 files
82 links
Uploading All programming codes are updating Daily
ask doubts in comment box 🎁☑️
Download Telegram
Which of the following cannot be a variable?
Anonymous Quiz
40%
__init__
20%
in
0%
it
40%
on
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
python files are saved with the extension as ?
Anonymous Quiz
0%
.pyth
17%
. python
83%
.py
0%
.p
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
Comments in Python begin with ...?
Anonymous Quiz
0%
<!--
17%
"
83%
#
0%
*
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)
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)»
What is the maximum possible length of an identifier?
Anonymous Quiz
14%
96
43%
64
14%
79
29%
101
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 = '!'
how many members are active this channel ? plz comment ur names
Anonymous Poll
100%
Active
0%
Not Active
Which of the following will provide a * character as alternative line ending for the print function?
Anonymous Quiz
0%
ending = '*'
33%
end as *
67%
end = '*'
0%
end to *