1#Cheating on your spanish homework in python:
2
3spanish_homework = 'hard'
4
5if spanish_homework == 'hard':
6 print('Google translate spanish to english')
7else:
8 print("Marks: 5/500")
9Z#(shit code ik)
1React propTypes: objectOf vs shape?
2
3PropTypes.objectOf is used when describing an object whose properties are all the same type.
4
5 const objectOfProp = {
6 latitude: 37.331706,
7 longitude: -122.030783
8 }
9 // PropTypes.objectOf(PropTypes.number)
10
11
12PropTypes.shape is used when describing an object whose keys are known ahead of time, and may represent different types.
13
14 const shapeProp = {
15 name: 'Jane',
16 age: 25
17 }
18 // PropTypes.shape({ name: PropTypes.string, age: PropTypes.number })