Emailimport collections dict1 = {‘day1’: ‘Mon’, ‘day2’: ‘Tue’} dict2 = {‘day3’: ‘Wed’, ‘day1’: ‘Thu’} res= collections.ChainMap(dict1, dict2) print(res.maps,’n’) print(‘Keys =’, format(list(res.keys()))) print(‘values =’,format(list(res.v..

Read more

Emailfrom array import * t= [[1,3,4],[3,4,5],[4,5,6],[4,5,4]] # this coding inset of the coding t.insert(1,[0,0,0]) # this cosing is the update of the coidng t[2]=[11,9] t[0][2]= 7 # this is the coding is the delete of the codig del t[2] for i in t: for c in i: print(c,end= ” &#8220..

Read more

Email# this fuction are using the dist diste= {‘name’:’coding anil’, ‘age’:3} print (diste[‘name’]) # this coding is the update codig diste[‘name’]= “this best coding anil” print(diste[‘name’]) # delete coding del diste[‘age’] pr..

Read more

Email Traverse − print all the array elements one by one. Insertion − Adds an element at the given index. Deletion − Deletes an element at the given index. Search − Searches an element using the given index or by the value. Update − Updates an element at the given index.   from array import * name = array(‘i’,[43,5,4,3,2,24,5]) # ..

Read more

Emailfrom array import* array1 = array(‘i’,[30,40,20,30,20,40,30]) if array1[0] / 2 == 0: print(“this codig working”) else: print(“not working”) array1.insert(1,000000) array1.remove(0) print(“this searching postion”,array1.index(30)) array1[4]= 4 for i in array1: print(i) total=array1[0]+array1[1] print(total) sumall = sum(array1); prin..

Read more

Email#include<iostream> using namespace std; class Shape{ public: virtual void drow()=0; }; class Rete : Shape{ public : void drow() { cout << “this main regtagularn”; } }; class Treal : Shape{ public: void drow() { cout << “this other shape of the comptern”; } }; class Book : Shape{ public : void drow() { cout ..

Read more

Email#include<iostream> using namespace std; class Anil{ public : void fun(int x) { cout << “the x alues of the function”<< x<< endl; } void fun(double x) { cout << “this coding wokring” << x<< endl; } void fun(int x, int y ) { cout << “this coding of the best”<< x << y << endl; ..

Read more

Email#include<iostream> using namespace std; class A{ public : virtual void add() { cout << “this main function coding”; } virtual void show() { cout << “this show of the codn main fn”; } }; class B : public A{ public : void add() { cout << “this sub codngn”; } void show() { cout << ..

Read more

Email#include<iostream> using namespace std; class Anil{ public : void fun(int x) { cout << “the x alues of the function”<< x<< endl; } void fun(double x) { cout << “this coding wokring” << x<< endl; } void fun(int x, int y ) { cout << “this coding of the best”<< x << y << endl; ..

Read more

Email#include<iostream> using namespace std; class A{ public : void data() { cout << “the values of the function”; } }; class B{ public : void setname() { cout << “this coding bealgrloe”; } }; class C { public : void setnamess() { cout << “this coding bealgrloe”; } }; class D: public A, public B, ..

Read more

Email#include<iostream> using namespace std; class A{ public : void setaname() { cout << “this coding aniln”; } }; class B : public A { public : void setdate() { cout << “this main codingn”; } }; class C : public A { public : void stenamest() { cout << “this about of the main coding”; ..

Read more

Email#include<iostream> using namespace std; class A{ public: void setname() { cout << “this my name”; } }; class B : public A{ public : void setdate() { cout << “this seicdn of the mane function”; } }; class C { public : void detele() { cout << “this workin of coding”; } }; class D ..

Read more

Email#include<iostream> using namespace std; class A{ public : void setname() { cout <<“this manin name”; } }; class B : public A{ public : void setdate() { cout <<“this data fo the class”; } }; class C : public B { public : void setage() { cout <<“thisma scextio f c”; } }; int main() ..

Read more

Email#include<iostream> using namespace std; class Book{ private : int age ; public : void namet(int iage) { this->age=iage; } void disp() { cout << this->age ; } }; int main() { Book anil; anil.namet(555); anil.disp(); r..

Read more

Email#include<iostream> using namespace std; class Father{ public : void setname() { cout << “this aniln”; } }; class Mother : public Father{ public : void setname() { cout << “n this codoingof the”; Father::setname(); } }; int main() { Mother naik; naik.setname(); r..

Read more

Email/* this method over wring class*/ #include<iostream> using namespace std; class Father { public : void setanil() { cout << “this is main class of the coding “; } }; class Mother : public Father{ public : void setanil() { cout << “this mohter class values of the coding”; } }; int main() { Mother ..

Read more

Email#include<iostream> using namespace std; class Father{ public : int hight; void setfather(){ cout << “this is the father coding class”; } }; class Mother{ public : string color; void setmohter() { cout << “this mother coding class”; } }; class Chlid : public Father, public Mother{ public : void setfather(){ cout << “this main of ..

Read more

EmailR is a programming language developed by Ross Ihaka and Robert Gentleman in 1993. R possesses an extensive catalog of statistical and graphical methods. It includes machine learning algorithm, linear regression, time series, statistical inference to name a few. Most of the R libraries are written in R, but for heavy computational task, C, C++ ..

Read more

Email#include<iostream> using namespace std; class Anil{ protected: string name; public : void stename(string iname) { name = iname; } }; class Book : private Anil{ public : void display() { cout << name; } void bookname(string iname) { stename(iname); } }; class Gsstud : public Book{ public : void displuw(string iname) { bookname(iname); } }; ..

Read more

Email#include<iostream> using namespace std; class Anil{ protected : string name; public : void setName(string iname) { name = iname; } }; class Book : public Anil{ public : void displ() { cout << “this is the public classn” << name; } }; int main() { Book naik; naik.setName(“anilnaikcodngn”); naik.displ(); r..

Read more

Email#include<iostream> using namespace std; class Anil{ protected: string name; int age; public : void setname(string iname) { name= iname; } void setage(int iage) { age=iage; } }; class Book : public Anil{ public : void display() { cout << name << age; } }; int main() { Book naik; naik.setname(“this codiong workingn”); naik.setage(12345); naik.display(); return ..

Read more

Email#include<iostream> #include<string> using namespace std; class Anil{ public : string name; int age; void setname(string iname) { name = iname; } void setage(int iage) { age=iage; } }; class Book : public Anil{ public : int id; void setid(int iid){ id=iid; } void desipyaly() { cout << name << age << id; } }; int ..

Read more

Email#include<iostream> using namespace std; class Anil{ string name; int age; public : Anil(string iname, int iage) { name = iname; age = iage; } void disp() { cout << name << age; } friend void displya(Anil man); }; void displya(Anil man) { cout << man.name << man.age; } int main() { Anil naik(“this mainof the ..

Read more