education.mu
Welcome,
Guest
. Please
login
or
register
.
May 20, 2012, 02:49:53 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Welcome to the free discussion forum. Ask your questions and we shall answer you immediately. Everyday new notes are added on the forum.
988
Posts in
592
Topics by
4706
Members
Latest Member:
Sameerchand2012
education.mu
Tertiary Education
Programming in Python
Python Programming (help needed)
« previous
next »
Pages:
[
1
]
Author
Topic: Python Programming (help needed) (Read 459 times)
KBR
Guest
Python Programming (help needed)
«
on:
May 11, 2011, 01:30:46 PM »
[Q1] Write a program to calculate xy , where y can be any integer. The program should have a main part to input x and y and a function to return the power.
[Q2]Write a program that:
I. generates 6 different random numbers between 1 and 40,
II. stores these numbers in a list and,
III. displays the smallest and largest number from this list.
[Q3]Write a program that does the following:
I. Constructs a window with the title “Triangles” and dimensions 500 × 500.
II. Draw a red triangle with blue borders by clicking on any three points in the window.
III. Draw an isosceles right angled triangle having its hypotenuse on a horizontal line. Assume that the length of the equal sides is 50 units
[Q4]Write a program that draws a rectangle from the two mouse clicks which corresponds to the opposite corners of a rectangle and displays the area and perimeter of the rectangle.
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Tuition 2011
-----------------------------
=> Tuition 2011
-----------------------------
SC (FIV - FV)
-----------------------------
=> Travel and Tourism
=> Français
=> EnglishLanguage
=> Mathematics
=> Principles of Accounts
=> Economics
=> Business Studies
=> Physics
=> Biology
=> Chemistry
=> Additional Mathematics
=> Computer Studies
-----------------------------
HSC (LVI - UVI)
-----------------------------
=> General Paper
=> Accounting
=> Physics
=> Chemistry
=> Computing
=> Mathematics
=> Français
-----------------------------
Law
-----------------------------
=> LLB - General Information
=> Common Law Reasoning and Institutions
=> Criminal Law
=> Elements of the Law of Contract
=> Public Law
-----------------------------
ACCA
-----------------------------
=> ACCA - General Information
=> F1
=> F2
=> F3
-----------------------------
Tertiary Education
-----------------------------
=> Web Technologies
=> Management and Finance
=> Computer Networks
=> Information Security
=> Programming in Python
-----------------------------
BCS (British Computer Society)
-----------------------------
=> Software Development
-----------------------------
General Category
-----------------------------
=> Driving Tips
=> Forum Rules
=> General Discussion
=> Happy Birthday Messages
Loading...