Welcome

Please register to have access to more features!

It is highly recommended that you have Javascript enabled; many features will not work unless you do. The recommended browsers are Firefox and Chrome; the board is also NOT mobile-friendly.

Please invite your friends!

If you were referred by someone (ex. me, Jessica) please put their username in the referral box on the registration page. Ask them if you don't know their username.

If you are visiting for TESTING PURPOSES ONLY, this is the test account information:


Username:
Test
Password: test123



Select a forum to post in:

Python

Helpful topics on HTML, C++

Moderators: Jessica, Teachers

Python

Post Number: #1  Postby tomtiger11 » January 15th, 2013, 5:36 pm

Python. One of my favourite programming languages. Mainly because of its simplicity. So, Instead of rambling on, here is an example of a counter that counts to ten.

Code: Select all
count = 0
while (count < 11):
   print 'Count:', count
   count = count + 1

print "See ya!"


and here is a simple if statement code:

Code: Select all
i= raw_input("Pi=Tau? (y/n)")
if i == "y":
   print("Nope!")
else:
   print("Correct :D")
  • 0

You know that person that has tons of friends, and more money than sense? Yea, I'm not that person... XD
tomtiger11
Computer Geek
Topic Author

Global Moderator
Onyx
Onyx
 
8 years of membership8 years of membership8 years of membership8 years of membership8 years of membership8 years of membership8 years of membership8 years of membership
 
Posts: 192
Topics: 28
Joined: October 21st, 2011, 12:27 pm
Local time: December 14th, 2019, 12:50 pm
Last Visit: September 17th, 2018, 11:34 am
Gender: Male
Cash on hand: 552.28
Bank: 1,428.61
Reputation: 3
Medals: 5
1 Year (1) 2 Years (1) Feedback Survey (1) Facebook group (1) Pin-Board (1)
Blog: View Blog (3)
Teacher

Return to ICT Topics

Login  •  Register
cron
Reputation System ©'