Discuss Scratch
- Discussion Forums
- » Things I'm Making and Creating
- » Python or Java? (Or any other language)
- LastContinue
-
Scratcher
500+ posts
Python or Java? (Or any other language)
6502.Best assembler variant yes.
- not-creative
-
Scratcher
10 posts
Python or Java? (Or any other language)
print("Well, you could do Python.") print("Since it has everything you need and it is very easy to get started.")
class WhichOne { public static void main(String[] args) { System.out.println("Or you could do Java."); System.out.println("Which has the luxury of 'Write Once, Run Everywhere'."); System.out.println("Allowing your code to be run on every machine that can run any version of Java. (Windows, Mac, Linux, and even ATM machines, printers, etc.)"); System.out.println("Python doesn't really have that luxury, but Java also doesn't have simple code sometimes."); System.out.println("I mean, you have to do THIS to write a few lines of text!"); } }
but really its up to you.
if you want to do python, do python
if you want to do java, do java
just dont forget semicolons! ;
Last edited by not-creative (Nov. 6, 2019 03:56:57)
- LastContinue
-
Scratcher
500+ posts
Python or Java? (Or any other language)
Use OCaml
let add a b = a + b let sub a b = let check = a - b in if check < 0 then 0 else check let rec fib x = fibn 1 1 x and fibn a b x = match x with 0 -> a + b | _ -> fibn b (a+b) (x-1) let addTest = add 5 6;; let subTest = sub 100 1;; let zeroTest = sub 1 100;; print_endline "Fibonacci Test: "; for i = 0 to 10 do print_endline (string_of_int i ^ ": " ^ string_of_int (fib i)) done; print_endline "Add Test: "; print_endline (string_of_int addTest); print_endline "Sub Test(s): "; print_endline (string_of_int subTest); print_endline (string_of_int zeroTest);
- CatsUnited
-
Scratcher
1000+ posts
Python or Java? (Or any other language)
Use OCamlWait Django has a color formatted code option for OCaml? ok...
- LastContinue
-
Scratcher
500+ posts
Python or Java? (Or any other language)
OCaml was created in 1996.Use OCamlWait Django has a color formatted code option for OCaml? ok...
- Discussion Forums
- » Things I'm Making and Creating
-
» Python or Java? (Or any other language)




