-
What is an expression? Expressions are representations of value. They are different from statements in the fact that statements do something while expressions are a representation of value. Python has some advanced constructs through which you can represent values and hence these constructs are also called expressions.
-
What is a syntax error? Syntax errors are the most basic type of error. They arise when the Python parser is unable to understand a line of code.
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
/* starting with hello world */ | |
#include <stdio.h> | |
int main() | |
{ | |
printf("Hello World"); | |
return 0; | |
} |
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
/* gcd using recursion */ | |
#include <stdio.h> | |
int hcf(int n1, int n2); | |
int main() | |
{ | |
int n1, n2; | |
printf("Enter two positive integers: "); | |
scanf("%d %d", &n1, &n2); |
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
[ | |
{ | |
"id": 1, | |
"artwork": "https://dl.dropboxusercontent.com/s/0dk1xmdi05eci1p/kannadiga.jpg?dl=0", | |
"album": "Sandalwood Hits", | |
"artist": "All", | |
"genre": "Sandalwood", | |
"songs": [ | |
{ | |
"id": "1", |
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
import React, { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
import { | |
View, | |
StyleSheet, | |
Animated, | |
Easing, | |
PanResponder, | |
Platform, | |
} from 'react-native'; |
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
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<link href="%PUBLIC_URL%/favicon.ico" rel="icon" /> | |
<meta content="width=device-width, initial-scale=1" name="viewport" /> | |
<meta content="#ffffff" name="theme-color" /> | |
<meta content="React Native App" name="description" /> | |
<meta content="react native, react native web" name="keywords" /> | |
<link href="%PUBLIC_URL%/manifest.json" rel="manifest" /> | |
<title>React Native Web</title> |
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
{ | |
"short_name": "RN - web", | |
"name": "React Native On Web", | |
"description": "A react native on web application", | |
"icons": [ | |
{ | |
"src": "/images/icons-192.png", | |
"type": "image/png", | |
"sizes": "192x192" | |
}, |
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
import React from "react"; | |
import { Text } from "react-native"; | |
import ReactDOM from "react-dom"; | |
import * as serviceWorker from "./serviceWorker"; | |
// Import Main React Native app component here | |
const App = () => <Text>Hello</Text>; | |
ReactDOM.render( | |
<React.StrictMode> | |
<App /> |
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
import * as React from 'react'; | |
import { Linking, Platform, ActivityIndicator } from 'react-native'; | |
import AsyncStorage from '@react-native-async-storage/async-storage'; | |
import { NavigationContainer } from '@react-navigation/native'; | |
const PERSISTENCE_KEY = 'NAVIGATION_STATE'; | |
import { AppNavigation } from './navigation/AppNavigation'; | |
export default function App() { |
OlderNewer