Posts

Showing posts with the label Python

200+ Programming Resources

Image
200+ Programming Resources This is an Open Source project created by my friend KrOW started on Sololearn and continuing to grow on Github . This program contains over 200 links and Resources to help Programmers at every level find helpful information. *Featured Code Created by KrOW I love how KrOW added a link to see this code running in this  Github  repo reading the code is awesome in many aspects but it helps me so much to see a code running to fully grasp it's potential. If you have links you would like to see added feel free to leave them in comments here and I will forward them to KrOW or suggest/add them via  Sololearn  or  Github . Thanks and Happy Coding!                

Free Code Examples Directory

Image
Share with Friends Free Code Examples Directory and List of Codes by Language Free Code Examples is an excellent Resource for learning new Programming Syntax or just grabbing a piece of Code to add to your Current Project Java Codes Java Current Time snd Date Java Random Numbers Java Square Root Cube Root Square and Cube of Number Java Code to Reverse Number Java Code to Reverse String Java Program to Check if Input is Vowel Java Odd or Even Java Fibonacci Sequence Java Program to Create a Diamond 8 Codes to find Versions Hello World in 10 Programming Languages Python Codes Rock Paper- Scissors Game with Python Card Deck Class with Python Python GUI Fun with Turtle Python Word Repeater Program Scientific Notation using Python NASA API with Python Machine- Learning Logistic Regression Python Machine Learning L...

Welcome to Free Code Examples

Image
Hello World! Welcome to Free Code Examples Welcome back if you are one of our 30,000+ page view visitors who has been enjoying this site online at  https://www.freecodeexamples.com   Welcome to our new Free Code Examples app viewers! If you haven't already downloaded this tiny app you can find it here  https://play.google.com/store/apps/details?id=e.g.freecodeexamples We have included this new mobile friendly format to both the online and app versions. This app will add new features and content frequently without the need for you to update using this Webapp format. You can find the numerous categories of content offered here by tapping the three bars to the left at the top to select a subject page with links to the 100+ pages of information available via this site and app. You can also find a list of our pages arranged by catagories here on  Free Code Examples Directory I hope you enjoy this growing app feel f...

Play and Learn Python Programming

Image
Play and Learn Python Learn or Refresh your Python Vocabulary with these fun Games and Tools More Free Python Learning Games Python Crossword Python Terms Hangman Python Terms Scramble                

Python Turtle Swirl

Image
Python GUI Turtle Swirl  Adapt, Edit and Create your own Groovy Python Turtle Codes. Source Code import turtle t=turtle.Turtle() wn = turtle.Screen()          wn.bgcolor("lightblue")  t.hideturtle() t.up() t.setpos(0,170) t.down() t.write("Python Swirl",move=True,align="center",font=("Cursive",30,"normal")) t.up() t.setpos(0,0) t.down() t.pensize(7) t.speed(0) colors=["blue","purple","red","yellow","hotpink","green"] for x in range(201):     t.color(colors[x%6])     t.fd(x)     t.left(85) Learn more about Python Turtle with this fun Tutorial Turtle Power Find More Python and Turtle Codes  Python GUI Fun with Turtle Free Code Examples Python Codes

Python GUI Fun with Turtle

Image
Python GUI Visual Python with Turtle You can adapt and edit this fun code to see the beautiful results. Create and run your own visual Python Codes. Source Code import turtle t=turtle.Turtle() wn = turtle.Screen()            wn.bgcolor("lightblue")    t.hideturtle() t.up() t.setpos(0,150) t.down() t.write("Cool Python Codes",move=True,align="center",font=("cursive",30,"normal")) t.up()   t.setpos(0,0) t.down() colors=["blue","purple","red","yellow","orange","green"] for x in range(300):     t.color(colors[x%6])     t.fd(x)     t.left(59) t.screen.exitonclick() t.screen.mainloop()  Learn more about Python Turtle try this awesome Tutorial. coolpythoncodes.com

Python Word Repeater

Image
This code will take a string you enter and repeat it for the number of times you specify using Python.      * Featured code submitted and Created by  Facu . Python def repeater(word, cant):  for i in range(cant):   print(word) try:  a = input()  b = int(input())  repeater(a, b) except (ValueError):  print("An error ocurred:")  print("\nThe second value must be a whole number!") except (EOFError):  print("An error ocurred:")  print("\nYou must enter a number in the second line!") Click here to try this code More Free Code Examples: Python Code to Reverse a String Hello World in 10 Programming Languages 8 Codes to Find Versions

Python Code to Convert Years to Days and Months

Convert the number of Years into the Number of Days and Months using Python      *Featured code submitted by  Femi Ojo via Sololearn. Python print("Enter the number of years") years = int(input()) print (years) print ("the number of days") n = years//100 if years > 0:     if years % 400 == 0:         o = years//400         j = n-o         y = years//4         e = y-j         g = years-e         f = e*366         h = g*365         i = f+h         n_day = int(i)     else:       y = years//4       e = y-n       g = years-e       f = e*366       h = g*365       i = f+h       n_day = int(i)    ...

Python Code to Reverse a String

Image
Reverse a String using Python * Featured Code Example Created and submitted by  Nitrocell  via Sololearn. Python tool = input() print("===============Result===============\n\n") print("Normal: " + tool + "\n") print("Reverse: " + tool[::-1]) Click here to run this code More Free Code Examples: C++- Code to Reverse A String Hello World in 10 Programming Languages 8 Codes to Find Versions

8 Codes to Find Versions

Image
The following is a collection of Codes used to Determine the Language or Compiler Version being used.    *The following Featured Codes were Created by  John Wells PHP Version <?php echo "PHP Version ".phpversion()."<br>"; ?> Click here to run this code Java Version public class Program {   public static void main(String[] args) {     System.out.format("Java Version = '%s'",         System.getProperty("java.version"));   } } Click here to see this code run Swift Version #if swift(>=4.2)  print("Running Swift 4.2 or later") #else #if swift(>=4.1)  print("Running Swift 4.1") #else #if swift(>=4.0)  print("Running Swift 4.0") #else  print("Running Swift earlier than 4.0") #endif #endif #endif Click here to run this code Ruby Version print "ruby #{ RUBY_VERSION }p#{ RUBY_...

Hello World in 10 Programming Languages

Image
Java Hello World public class Hello {       public static void main(String[] args){           System.out.println("Hello World!");} } Click here to see this code run HTML5 Hello World <!DOCTYPE html> <html>     <head>         <title>Page Title</title>     </head>     <body>         <h1>Hello World</h1>     </body> </html> Click here to run this code Python Hello World print("Hello World") Click here to see this code run C Hello World #include <stdio.h> int main() { printf("Hello World");      return 0;} Click here to see this code run C++ Hello World #include <iostream> using namespace std; int main() { cout << "Hello W...