AI Study Companion
Step-by-step answers and code help for JEE, NEET, GATE and college questions
Sample conversationPreview
A projectile is fired at 30 degrees with velocity 40 m/s. Find its range.
The range of a projectile is given by
R=u2sin2θgR = \frac{u^2 \sin 2\theta}{g}
With u=40u = 40 m/s, θ=30°\theta = 30° and g=9.8g = 9.8 m/s²:
R=402×sin60°9.8141.4 mR = \frac{40^2 \times \sin 60°}{9.8} \approx 141.4 \text{ m}
What is the output of this Python code?
python
nums = [1, 2, 3]
print(nums * 2)
In Python, nums * 2 repeats the whole list twice, so the output is:
python
[1, 2, 3, 1, 2, 3]
The * operator on a list repeats it, it does not multiply each element.
Like what you see? Create a free account to ask unlimited questions, upload images for OCR, and download chats as PDFs.