While loop in python practice
while(True): print("Enter the number :- ") n1 = int(input()) if(n1>100): print("…
while(True): print("Enter the number :- ") n1 = int(input()) if(n1>100): print("…
i=0 while(i<45): # continuoue the loop continuoue if i<5: i= i+1 continue # break me…
import flask; print("Comment in python") print("Single line comment below ") # This is the signle …
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <…
SELECT CONCAT( UPPER(SUBSTRING(word, 1, 1)), LOWER(SUBSTRING(word, 2, LENGTH(word) - 1)), IF(LOCATE(' …
After or before :- <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&qu…
Pseudo selector:- <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo…
Lambda function :- # Online Python compiler (interpreter) to run Python online. # Write Python 3 code in this online e…
<! DOCTYPE html > < html lang = "en" > < head > < meta charset = "UTF-8&qu…
def factoria_using_iteration ( n ): """ factorial using iteration process ""…
n = 20 attempt = 0 number_of_attempt_left = 9 while ( attempt < 9 ): print ( "Enter your number :- …
# initializse the global varaible here global l # assigning the value to the global variable l = 10 def function1…
Traceback (most recent call last): File "c:\Users\ukv-208\Downloads\prac\python\globalandstatic.py", line …
<! DOCTYPE html > < html lang = "en" > < head > < meta charset = "UTF-8&qu…
def getdate (): import datetime return datetime . datetime . now () def user_input_lock (): print ( &…
<! DOCTYPE html > < html lang = "en" > < head > < meta charset = "UTF-8&qu…
Exception has occurred: NameError name 'dfsddf' is not defined File "C:\Users\ukv-208\Downloads\prac\py…
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <…
# print("+",5+5) # print("-",5-5) # print("/",5/5) # print("*",5*5) # print(&…
a = int ( input ()) b = int ( input ()) # if a>b: print("a b se bada hai ") print ( "b a se bad…
<! DOCTYPE html > < html lang = "en" > < head > < meta charset = "UTF-8&qu…
# file open to the with block and the y will handle file file and self close the file with open ( "test.txt&quo…
print ( "File handling" ) # only write the file and override the existing content of the file # f = open(&q…
print ( "Enter number one?" ) num1 = int ( input ()) print ( "Enter pattern is asc - 1 or desc - 0&q…