Posts

Python Loop

 Loop : The execution of a specific code may need to repeated several number of times. 1. For Loop 2. While Loop    Program 1 N  = Int (Input (" Enter any no ") For i in range (1,11 ):          c = n*i          print ( N , "*", i , " = ", C) Program 2.  i = 1 While ( i < = 10 ):          Print ( i )         i = i +1   For  While

Python (conditional Statement)

 If Conditional Statement 1. if  2. if .. Else 3. nested Program:1 IF     Num = Int(input("Please enter any no"))     If num%2 = = 0 :             print ("Number is even ") Program 2 if ... else      Num = Int(input("Please enter any no"))     If num%2 = = 0 :             print ("Number is even ")     Else :               Print (" no is odd") Program 3     Num = Int(input("enter any No."))     if  Num = = 10 :          Print ("num is     Equal to 10 ")     elif Num = = 50:          Print ("No is equal to 10 ")     Else:          Print (" no. is not equal to 10 and 50 ) Refrence

Day - 6 Python (keywords & Operator)

(Keywords are special reserved words) True False None and as asset def class continue break else finally elif del except global for if from import raise try or return pass nonlocal in not is lambda Python Operator Arithmetic (+,-,*, %(remainder), ** exponent, // floor ) Comparison Operator (==, != , <= , <=,>,< Assignment Operator ( =, +=,-=, *= , %=, **= (power) ,//= (floor) Logical Operators  (and , or, not ) Bitwise Operator ( & (and) , |  (or) ,^ (xor), ~ (nor) , << (left Shift) , << (right shift) Membership Operator (in, not in ) Identity Operator ( is, is not)

MS Paint

Image
 Paint : Paint एक Drawing Software  होता है जिसमें आप ड्राइंग बना सकते हैं      Start button > all programs > Paint 1. File button (New, Save, Save as, Print, Scan, Send email, Properties , Set as desktop ,Exit 2. Ribbon (Home, View, Text) Home Ribbon  1. Clipboard - Cut, Copy, paste 2.Image - Selection, resize, rotate, crop 3.Tool :-Pencil, Text, Eraser, Color Picker, Magnifier, fill colour 4. Color View Ribbon   1. Zoom (In, out  max 800%) 2. Show Hide - Ruler, Guideline, Status bar 3. Display ( Full Screen, Thumbnail) Text Ribbon  1. Opaque -Background  2. Transparent - Background 3. Quick Access Toolbar           4. Drawing area (where we drawing the shapes) 5. Status Bar -  Bottom of application , it show status. File Save Extension JPEG - Join photographic Expert Group ( loose image) TIFF- Tagged Image File Format ( use for scan document, Graphic designing -1980) HEIF-High Efficiency Image F...

DAY 2 - MS DOS

 MS - DOS (Release : 12 Aug 1981 by Microsoft )           Commands                     1. Internal Commands (no supported file require)                     2. External Commands ( need Supporting files) Note: "command" /?   or Help "command" - get help  Internal Commands:- 1. CD   or CHDIR (change directory) 2. CLS (Clear screen)  3. Color (internal)                    3. COPY (copy one or more files) 4. Ctty (change input output device) 6. DEL ( delete files) 7. DATE ( View change date)    8. DELTREE ( delete one or more files) 9. echo ( display message)    10. Erase ( erase files form computer) 11. exit (exit from cmd)        12. lock ( lock the hard drive ) 13. md ( make directory)...

Day -5 Python Datatypes

 Python Data types 1. Number     a. Integer ( 10, 2, 29, -20  )     b. Float ( 1.9, 9.902, 15.2)     c. Complex ( 2.0 + 2.3j) 2. Sequence     1. String ( "hello yunus sir" )     2. List ( ["yunus" , 877, 125] ) - use Square      3. Tuple ( ( "yunus" , 877, 125) ) - use Parentheses 3.Boolean 4. Set ( {"james",4,5} )- no dublicate entry 5.Dictionary ( {1:'yunus',2:'Digital'} )

day -4 python String

Image
 Strings Are Array (examples) 1.  2.      3. 4. 5.