0
Python
How to translate this C++ code to Pyhton? Help. using namespace std; class Node { public: int roll; string Name; string Dept; int Marks; Node* next; }; Node* head = new Node(); bool check(int x) { if (head == NULL) return false; Node* t = new Node; t = head; while (t != NULL) { if (t->roll == x) return true; t = t->next; } return false; }
2 Answers