def qrange(n):for i in range(1, n):yield i * in = 10print('Squares of numbers from 1 to %d are:' % (n - 1))for i in qrange(n):print(i)
Exactly similar questions have been asked for more than 6 times since 2018.
#include <iostream>using namespace std;int main(){int p;bool a = true;bool b = false;int x = 10;int y = 5;p = ((x | y) + (a + b));cout<<p;return 0;}
Python allows string slicing. What is the output of the code given below?s='acpbuzx ehicapo' print(s[3:5])
#include <iostream>using namespace std;int main(){int g = 8;int & aref = g;g++;cout << "Value is: " << aref;return 0;}