ADVERTISEMENT

What will be the output of the following Python code (1)?

11. What will be the output of the following Python code?

from numpy import random

x = random.randint(100)

print(x)
  1. 56
  2. 26
  3. 40
  4. All of the mentioned above

Answer: D) All of the mentioned above

Explanation:

In the above code, random.randint(100) function has been used which is used to create any integer number till 100.

Comments and Discussions!




ADVERTISEMENT
ADVERTISEMENT

Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.