News
Entertainment
Science & Technology
Life
Culture & Art
Hobbies
News
Entertainment
Science & Technology
Culture & Art
Hobbies
Free Web development courses with real-time projects Start Now!! Program 1 let day =new Date().getDay() let month=new Date().getMonth() console.log(month) // switch(day) // { // case 0: console.log("Today is Sun");break; // case 1: console.log("Today is...
Free Web development courses with real-time projects Start Now!! Program 1 /* Loops in Java Script */ "use strict" const ps=require("prompt-sync") const prompt=ps({sigint:true}) /* n=0 f=1*5*4*3*2*1 f=f*n n-- */ let n,f=1,m n=parseInt(prompt("Enter a number"))...
Free Web development courses with real-time projects Start Now!! Program 1 "use strict" const ps=require("prompt-sync") const prompt=ps({sigint:true}) // let name=prompt("Enter Your Name") // console.log("Your Name is " + name) let a,b,c a=parseInt(prompt("Enter First No"))...
Free Web development courses with real-time projects Start Now!! Program 1 "use strict" const ps=require("prompt-sync") const prompt=ps({sigint:true}) /* Loops in Java Script 1.while 2.for 3.do-while 4.for in 5.for of intialization condition increment/decrement */ //...
Master Python with 70+ Hands-on Projects and Get Job-ready - Learn Python Program 1 import sys #Difference between List and Tuple # mylist=[101,"Vivek",89.99,True,10+5j,"Vivek"] # Mutable # mytuple=(101,"Vivek",89.99,True,10+5j,"Vivek") # Immutable # print("Size of List: ",sys.getsizeof(mylist))...
Master Python with 70+ Hands-on Projects and Get Job-ready - Learn Python Program 1 # Dictionary in Python #myd={101:'CSE',102:'IT',103:'Civi',104:'MBA',105:'Account',102:'ITDept'} # myd={101:'CSE',102:'IT',103:'Civi',104:'MBA',105:'Account'} # print(myd.keys()) # print("----------------------------------") # print(myd.values()) # print("----------------------------------") # print(myd.items()) #print(len(myd)) # print("Before...
Master Python with 70+ Hands-on Projects and Get Job-ready - Learn Python Program 1 # Set Collection # myset1={10,20,30,40,50,30,60,20} # print(len(myset1)) #myset2={101,"Vivek",True,98.66,13+5j} # print(type(myset1)) # print(type(myset2)) #print(myset1) #print(myset2) #myset={10,20} # mydict={} # myset=set({}) #...
Master Python with 70+ Hands-on Projects and Get Job-ready - Learn Python Program 1 # List Data Type in Python mylist=[10,20,30,40,23,60,13,90,45] #mylist2=[101,"Vivek",89.88,True] #print(mylist1[-4]) #print(mylist1[4]) #print(mylist[2:5]) # for m in mylist: # print(m) # for...
Master Python with 70+ Hands-on Projects and Get Job-ready - Learn Python Program 1 # Program for Linear Search mylist=[] n=int(input("Enter the limit")) print("Enter elements in list") for i in range(0,n,1): x=int(input()) mylist.append(x) s=int(input("Enter...
Master Python with 70+ Hands-on Projects and Get Job-ready - Learn Python Program 1 print("Enter First No") a=int(input()) print("Enter Second No") b=int(input()) c=a+b print(c) Program 2 a=int(input("Enter First Number")) b=int(input("Enter Second Number")) print("Before Swaping...
Master Python with 70+ Hands-on Projects and Get Job-ready - Learn Python Program 1 rno=101 name="Vishal Sharma" age=34 salary=50000 str="Your Roll No {rn} and Name {nm} and Age {ag} and Salary {sl}" str=str.format(rn=rno,nm=name,ag=age,sl=salary) print(str)...