R3M0T3from time import sleep
u = input('enter the character that you want first :')
s = input('enter the character that you want next :')
e = input('enter the character that you want next :')
h = input('enter the character that you want next :')
for o in range(4):
for i in range(5):
print(u,end="")
Good
Python Coding (CLCODING)Python Coding challenge - Day 24
What is the output of the following Python code?
Can any one explain Why anser is b
1. You have a list called List containing the values [1, 2, 3, 4, 5].
2.The code enters a for loop, where the variable I takes on the values from the list one by one.
3. Inside the loop, there's an if statement that checks if the current value of I is equal to 3. If I is 3, it executes the break statement, which immediately exits the loop.
4. If I is not 3, it prints the value of I.
5. After the loop finishes, there is an else block. This may look a bit confusing, but in Python, the else block of a for loop is executed if the loop is completed without encountering a break statement. It doesn't mean the loop was successful; it simply means it finished without early termination.
Here's what will happen when you run the code:
It will start looping through the elements of List.
When I is 1 and 2, it will print these values.
When I becomes 3, the if condition is true, and the break statement is executed, exiting the loop.
Since the loop was exited with a break, the else block is skipped, and "completed successfully" will not be printed in this case.
رابط
انقر للعرض
انقر للعرض
I joined this investment with $300 and after trading for 48 hours in my investment account I was able to earn ($4,150) as profits earnings successful, I surely recommend @trade_with_samuel1
for everyone who wants to make money on daily basis outside their job or business.Click on the link below to contact Admin Now👇
https://t.me/trade_with_samuel1
Seeking a proficient Python developer with expertise in Machine Learning. For job specifics and details, kindly reach out to us via WhatsApp at +91 80520 55746. This is an assignment project that requires a prompt solution. If you are prepared to initiate work immediately, we encourage you to get in touch with us. Thank you!
Python Coding (CLCODING)https://whatsapp.com/channel/0029Va5BbiT9xVJXygonSX0G
Sorry but what would you share in this channel?? Is it necessary to join?