Forwarded from Python Questions
x = (round(4.5) - - round(-4.5))
# What is the value of x? Explain Why?
# What is the value of x? Explain Why?
Anonymous Quiz
34%
0
13%
9
8%
-9
18%
8
4%
-8
14%
Syntax Error
8%
Show me the answer
Forwarded from Python Projects
Practice Code: 051
Write a program to return the sum of a series of sequential numbers. The sequence can be
a. 1,2,3,4,5.......n
b. 1,3,5,7,9,11,.....n
c. 2,4,6,8,10,12.....n
d. 35,42,49,56,63....n
Note: Do not use a loop to add the numbers, if that is what your idea is, not use a sum() or similar function to add them.
Write an algorithm that optimally finds the sum total.
««« Click here for solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #numbers #algorithm
Write a program to return the sum of a series of sequential numbers. The sequence can be
a. 1,2,3,4,5.......n
b. 1,3,5,7,9,11,.....n
c. 2,4,6,8,10,12.....n
d. 35,42,49,56,63....n
Note: Do not use a loop to add the numbers, if that is what your idea is, not use a sum() or similar function to add them.
Write an algorithm that optimally finds the sum total.
««« Click here for solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #numbers #algorithm
Python Projects
Practice Code: 051 Write a program to return the sum of a series of sequential numbers. The sequence can be a. 1,2,3,4,5.......n b. 1,3,5,7,9,11,.....n c. 2,4,6,8,10,12.....n d. 35,42,49,56,63....n Note: Do not use a loop to add the numbers, if that is…
Ok, check this video which gives an hint to solve this problem https://youtu.be/WxiNUO7oXLQ
YouTube
How to Add a Series Of Numbers Quickly - Vedic Maths Full Course : iGnani
In this Vedic Maths full course by iGnani Academy, I will show you how to add a series of numbers quickly using just a couple of simple steps.
Dear sir, in this Vedic maths full course using this vedic maths trick will make adding a sequence of numbers…
Dear sir, in this Vedic maths full course using this vedic maths trick will make adding a sequence of numbers…
Forwarded from Python Questions
x = 5,000,000.00
type(x)
# What is the datatype of x? Explain Why?
type(x)
# What is the datatype of x? Explain Why?
Anonymous Quiz
5%
str
22%
int
53%
float
3%
list
8%
tuple
6%
Syntax Error
3%
Show me the answer
Forwarded from Python Questions
What is the maximum length allowed for an identifier in Python 3?
Anonymous Quiz
17%
64
13%
128
20%
256
21%
1024
18%
None of the above
11%
Show me the answer
Forwarded from Python Projects
#PracticeCode: 0041
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Create a program in which a word or line is given as input and you have to print the number of letters, numbers and any special character (Not includes space) in it.
Sample :-
input - Python 3.8.1
output - Letters = 6
Numbers = 3
Special Char = 2
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #conditions
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Create a program in which a word or line is given as input and you have to print the number of letters, numbers and any special character (Not includes space) in it.
Sample :-
input - Python 3.8.1
output - Letters = 6
Numbers = 3
Special Char = 2
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #conditions
Forwarded from Python Questions
'{} was created by {1} and first released in {2}'.format('Python','Guido van Rossum','1991')
#What is the output of the code shown above?
#What is the output of the code shown above?
Anonymous Quiz
62%
Python was created by Guido van Rossum and first released in 1991
15%
Guido van Rossum was created by 1991 and first released in Python
9%
{} was created by {1} and first released in {2}
9%
Error
6%
Show me the answer
Forwarded from Python Questions
Forwarded from Python Projects
#PracticeCode: 0042
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Create a program to take input a array of numbers and required sum. Now you have to print the lowest numbers from the array which sums to the required sum given as input.
Sample :-
input - [10,0,-1,20,25,30]
Required Sum - 45
output - [20,25]
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #conditions
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Create a program to take input a array of numbers and required sum. Now you have to print the lowest numbers from the array which sums to the required sum given as input.
Sample :-
input - [10,0,-1,20,25,30]
Required Sum - 45
output - [20,25]
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #conditions
Forwarded from Python Questions
Which of the following is a valid statement and runs without error?
Anonymous Quiz
53%
round(45.8)
8%
round(7463.123.3.3)
20%
round()
8%
round(6352.898,2,5)
6%
None of the above
5%
Show me the answer
Forwarded from Python Projects
#PracticeCode: 0043
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Create a program to check validity of password given input by the users.
Conditons :
* At least 1 letter between [a-z] and 1 letter between [A-Z].
* At least 1 number between [0-9].
* At least 1 character from [$#@].
* Minimum length 6 characters.
* Maximum length 16 characters.
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #conditions
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Create a program to check validity of password given input by the users.
Conditons :
* At least 1 letter between [a-z] and 1 letter between [A-Z].
* At least 1 number between [0-9].
* At least 1 character from [$#@].
* Minimum length 6 characters.
* Maximum length 16 characters.
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #conditions
Forwarded from Python Questions
x = bin((3**9) -1) == '{}'.format(bin((3**9) -1))
What is the value of x? Explain?
What is the value of x? Explain?
Anonymous Quiz
20%
19682
30%
True
19%
False
11%
729
7%
None of the above
13%
Show me the answer
Forwarded from Python Questions
x='{0}, {1}, and {2}'
x.format('hello', 'Python Club', 'members')
# What is the output of this code.
x.format('hello', 'Python Club', 'members')
# What is the output of this code.
Anonymous Quiz
29%
‘hello Python Club and members’
22%
‘hello, Python Club, members’
28%
‘hello, Python Club, and members’
17%
Syntax Error
4%
Show me the answer
Forwarded from Python Questions
x=56.236
print("%.2f"%x)
What is the result of these statements?
print("%.2f"%x)
What is the result of these statements?
Anonymous Quiz
9%
56.00
17%
56.236
21%
56.24
31%
56.23
10%
0056.236
11%
Show me the answer
Forwarded from Python Questions
x = [1, 23, 'hello', 1]
type(x)
# What datatype of x? Explain?
type(x)
# What datatype of x? Explain?
Anonymous Quiz
5%
str
66%
list
6%
dict
8%
array
7%
tuple
4%
error
3%
Show me the answer
Forwarded from Python Projects
#PracticeCode: 0044
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Create a program to print alphabet "A" on Screen.
Sample :-
***
* *
* *
*****
* *
* *
* *
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #conditions
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Create a program to print alphabet "A" on Screen.
Sample :-
***
* *
* *
*****
* *
* *
* *
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #conditions
❤1
Forwarded from Python Projects
#PracticeCode: 0045
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Create a program to take input a month and year and print number of days in it.
Sample :-
input - January, 2020
output - days = 31
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #conditions
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Create a program to take input a month and year and print number of days in it.
Sample :-
input - January, 2020
output - days = 31
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #conditions
Forwarded from Python Questions
Forwarded from Python Projects
#PracticeCode: 0046
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Create a program to take input of all three sides of a triangle and then print the type of the triangle(equilateral, scalene, isosceles).
* Equilateral trinagle has all sides equal.
* Scalene triangle has all sides unequal.
* Isosceles triangle has two sides equal.
Sample :-
input -
a = 12
b = 8
c = 6
output - Scalene triangle
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #conditions
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Create a program to take input of all three sides of a triangle and then print the type of the triangle(equilateral, scalene, isosceles).
* Equilateral trinagle has all sides equal.
* Scalene triangle has all sides unequal.
* Isosceles triangle has two sides equal.
Sample :-
input -
a = 12
b = 8
c = 6
output - Scalene triangle
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #conditions
Forwarded from Python Questions
x = "Python World"
x[3] = 's'
# What is the value of x? Can you explain Why?
x[3] = 's'
# What is the value of x? Can you explain Why?
Anonymous Quiz
13%
Python World
6%
python world
52%
Pytson World
8%
Pyshon World
16%
Error
5%
Show me the answer