Posts

Conditional ternary operator

#include<iostream> using namespace std; int main() {          int a,b;     string c,d,largest;     c = "hi";     d = " bye";     cin>>a>>b;     largest = (a>b)?c:d;     cout<<largest;          return 0; }

Log Solver

New Year wish By Shifan

Image

Diwali Wish Source Code

Image

Python Online Compiler For Free

Python Na Ennada Video No: 22 Source code ( Data Type Modifier )

  v = str ( 55 ) # "55" print ( int (v)) print ( len (v)) https://www.jdoodle.com/embed/v0/3T5b

Python Na Ennada Video No:20 Source Code ( How to Write a txt File Using Python

  from  sys  import  argv script, filename  = argv print ( f 'we are going to erase ok  { filename } ' ) input ( "?" ) print ( "opening the file ...." ) target =  open (filename,  'w' ) print ( "Truncating the file. goodbye!" ) target.truncate() print ( 'now i am going to ask you you for three lines' ) line1 =  input ( "line 1:  " ) line2 =  input ( "line 2:   " ) line3 =  input ( "line 3:   " ) print ( "i am going to write these to the file ." ) target.write(line1) target.write( " \n " ) target.write(line2) target.write( " \n " ) target.write(line3) target.write( " \n " ) print ( " and finally , we close it." ) target.close()