This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Form.js | |
class Form extends React.Component { | |
constructor() { | |
super(); | |
this.handleSubmit = this.handleSubmit.bind(this); | |
} | |
handleSubmit(event) { | |
event.preventDefault(); | |
const data = new FormData(event.target); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using Python sorted() funtion to sort a list: | |
# The sorted() function returns a sorted list of the specified iterable object. | |
# You can specify ascending or descending order. Strings are sorted alphabetically, and numbers are sorted numerically. | |
# You cannot sort a list that contains both string values and numeric values. | |
# Sort numeric: | |
a = (87,23,3,87,99,54,5,10,8,28) | |
x = sorted(a) | |
print(x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
import math | |
def numberandom(): | |
random=datetime.now().strftime("%S") | |
numberand=pow(int(random), int(random)) | |
return numberand | |
if __name__ == "__main__": | |
print("RANDOM NUMBER : %d", numberandom()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Package Game; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.list; | |
import java.util.InputMismatchException; | |
import java.util.Random; | |
import java.util.Scanner; | |
public class TicTacToe { |