Login
Remember
Register
All Courses
Ask a Question
Questions
Unanswered
Ask a Question
Blog
Tutorials
Interview Questions
Back
Login
Explore Courses
Blog
Tutorials
Interview Questions
community
Python
if i <= 3: break else: print("*")
if i <= 3: break else: print("*")
if i <= 3: break else: print("*")
0
votes
2
views
asked
Jun 24, 2021
in
Python
by
Vamsi Krishna
(
120
points)
Please
log in
to add a comment.
Please
log in
to answer this question.
0
Answers
Related questions
0
votes
3
answers
n=int(input()) c=list(map(int,input().strip().split(" "))) i=0 co=0 l=len(c) for i in range(l): if(c[i+2]==0 and i<(l-2)): i=i+2 co=co+1 else: i=i+1 co=co+1 print(co)
asked
Jun 24, 2021
in
Python
by
himani1512
(
200
points)
python
0
votes
2
answers
How to condense if/else into one line in Python?
asked
Sep 17, 2019
in
Python
by
Sammy
(
47.6k
points)
python
0
votes
2
answers
if/else in a list comprehension?
asked
Sep 17, 2019
in
Python
by
Sammy
(
47.6k
points)
python
list-comprehension
0
votes
1
answer
Putting a simple if-then-else statement on one line
asked
Jun 19, 2019
in
Python
by
Sammy
(
47.6k
points)
if-statement
conditional-operator
python
python-programming
0
votes
1
answer
What is print(__doc__) in Python 3 script in the following code:
asked
Feb 15, 2021
in
Python
by
rahulnayar01123
(
6.1k
points)
31k
questions
32.8k
answers
501
comments
693
users
All categories
Python
(3.4k)
Java
(2.2k)
SQL
(1.6k)
Linux
(372)
Big Data Hadoop & Spark
(1.3k)
Data Science
(3.3k)
R Programming
(865)
C Programming
(34)
DevOps and Agile
(2.9k)
Docker
(61)
AI and Deep Learning
(1.4k)
Machine Learning
(1.1k)
AWS
(2.5k)
Azure
(1.6k)
GCP
(226)
RPA
(616)
Selenium
(211)
Software Testing
(58)
Blockchain
(436)
Salesforce
(823)
Others
(580)
BI
(1.9k)
IoT
(24)
Web Technology
(1.5k)
Cyber Security
(358)
Digital Marketing
(331)
Technology Trends
(121)
SEO
(105)
Informatica
(22)
UI UX
(152)
Electric Vehicle
(24)
Investment Banking
(56)
Supply Chain Management
(30)
...